peter279k / phpwebsocket

Automatically exported from code.google.com/p/phpwebsocket
0 stars 0 forks source link

just a summary about two versions they work on fireworks and chrome #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
http://www.wilky.it/Shared/phpwebsocket.zip (this works on fireworks 9.0.1, 
doesnt works on chrome)

https://github.com/esromneb/phpwebsocket (this works on chrome 17.0.963.12 dev, 
doesnt work on fireworks)

Original issue reported on code.google.com by yuanyi...@126.com on 31 Dec 2011 at 8:20

GoogleCodeExporter commented 9 years ago
Ok, there is no trouble with that, if you want to work on both, just use the 
second(github) and make the simple modification on client.html:

Change line 17: socket = new WebSocket(host);

To: if ('MozWebSocket' in window) {
        socket = new MozWebSocket(host);
    }
    else if ('WebSocket' in window) {
        socket = new WebSocket(host);
    }
    else {
        log("Your Browser don't support Sockets! Go get Chrome or Firefox quick as posible, cause the others sux! Thank You!");
    }

Original comment by fabim3...@gmail.com on 31 Jan 2012 at 4:38