[squeak-dev] Re: Support for WebSocket version 7 or above in the WebClient package

Levente Uzonyi leves at elte.hu
Wed Oct 5 21:31:31 UTC 2011


On Wed, 5 Oct 2011, Andreas Raab wrote:

> On 10/3/2011 23:31, Levente Uzonyi wrote:
>> FF6 uses version 7, Chromium 15 uses version 8 (according to the headers
>> - instead of 10 which was advertised), which is pretty much the same as
>> version 7.
>
> Thanks. I was able to test on Chrome 14 with the WebSockets example; though I 
> couldn't get FF7 to work at all (it reports "WebSockets are not available", 
> i.e., window.WebSocket is undefined although about:config says that 
> network.websocket.enabled is true). If you can find out how to make it work 
> on FF7, I'd appreciate a pointer.

We use the following hack in our javascript to make our code work in 
Firefox:

if (typeof MozWebSocket != 'undefined') {
 	WebSocket = MozWebSocket;
}

>
>> It didn't work, but we fixed it, you can find the changes here:
>> http://leves.web.elte.hu/squeak/WebClient-WebSocket-fixes.1.cs . The
>> server side works, but I didn't check the client. Note that the changes
>> are for ar.85. I just checked and saw that you fixed some issues in
>> ar.86, so our cs will have to be merged.
>
> I merged it into ar.87 which includes some more (rather embarrassing :-) 
> fixes.

Thanks. I extracted three more changes from our version which may be 
generally useful: http://leves.web.elte.hu/squeak/WebClient-Core-ul.88.mcz


Levente

>
> Cheers,
>  - Andreas
>
>



More information about the Squeak-dev mailing list