gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.73k stars 489 forks source link

WebSocket-Protocol field problem #66

Closed kitech closed 13 years ago

kitech commented 13 years ago

i'am using a websocket server libwebsockets in C, when i using this flash web-socket-js, the server want a field Sec-WebSocket-Porotocol field when handshake, but web-socket-js, send it's only WebSocket-Protocol field, is that websocket protocol standard upgrade problem?

gimite commented 13 years ago

Thanks, that's a bug in web-socket-js. Fixed with: https://github.com/gimite/web-socket-js/commit/93034d8baa85ebf01915dd71d9a3c7ebeb36bee4

Please update web-socket-js and try again. Note that WebSocketMain.swf may be cached even when you reload the page. Safest way to use the new version is to change the name of the file (and WEB_SOCKET_SWF_LOCATION).