Tuesday, July 9, 2013

Socket.io and flash sockets

Having trouble with supporting flash sockets on port 843 in Socket.io? Are you doing this?
io.set('flash policy server', true);
io.set('flash policy port', 843);
That turns on flash socket support, but on port 10843! The call to
io.set('flash policy server', true);
actually starts the server - on the default port of 10843. The next line of code that sets the flash policy port to 843? It has no effect.

Do this instead:

io.set('flash policy port', 843);
io.set('flash policy server', true);
or better yet:
io.set('flash policy port', 843);
which will set the port and turn on the flash policy server.

No comments:

Post a Comment