[html5] Web Workers question

Martin Gainty mgainty at hotmail.com
Thu Apr 22 09:53:12 PDT 2010


hi dylan

i am fairly new to the web-worker spec
could you or anyone else on this list enumerate the advantages of web-worker implementation of
var server = new WebSocket('ws://whatwg.org/database');
server.onmessage = function (event) {
}
over classic http request/response to the same website?

Thanks!
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> From: dylan.barrell at deque.com
> To: help at lists.whatwg.org
> Date: Thu, 22 Apr 2010 12:15:56 -0400
> Subject: [html5] Web Workers question
> 
> I have a question about Web Workers
> 
> It seems like the spec http://www.whatwg.org/specs/web-workers/current-work/ 
>   is somewhat confused about whether any documents are available in  
> the GlobalWorkerScope.
> 
> On the one hand, it says that if the script creating the Worker's  
> global object is a Window,  then the document should be added to the  
> "worker's Documents",but then goes on to say that the DOM API is not  
> available to the Worker in this version of the spec.
> 
> How does adding the document to the WorkerGlobalScope help if the DOM  
> API is not available?
> Doesn't this really reduce the usefulness of the Worker object by  
> restricting it to tasks that have nothing to do with the DOM - e.g.  
> analyzing it as it changes?
> 
> thoughts on this?
> 
> --Dylan
> 
> 
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20100422/f93d554f/attachment-0002.htm>


More information about the Help mailing list