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

Problem with Firefox and IE #19

Closed afshinm closed 14 years ago

afshinm commented 14 years ago

Hi,

I'm using websocket.js and it worked good in Chrome but in Firefox and IE, WebSocket object created but it not connected to server ...

When i start FireBug, i see some errors:

[WebSocket] cannot connect to Web Socket server at ws://localhost:12345/ (SecurityError) make sure the server is running and Flash socket policy file is correctly placed webSocketError(Object { name="message"})web_socket.js (line 311) [Break on this error] console.error(decodeURIComponent(message));\n

Whats the problem?

Thanks.

petrblaho commented 13 years ago

Hi, I have exactly the same problem. It does not work under WinXP with latest Flash but it does work under Linux.

In FF under WinXP a can see message about getting policy file on port 843 and then the same error messages in firebug console as afshinm writes above.

In FF under Linux a can see message about getting policy file on port 843 then [WebSocket] connected message and series of messages about handshaking with server.

Do you have any ideas?

With regards Petr Blaho