nodejs cluster issue with socket.io

787 views
Skip to first unread message

Abramovick

unread,
Feb 11, 2014, 1:36:26 PM2/11/14
to sock...@googlegroups.com
My app was working fine (prior to using nodejs cluster) but after introducing it an error occurs on the client side saying "WebSocket connection to 'ws://ip_address/socket.io/1/websocket/92H245FLpYWnG6jF_uK6' failed: WebSocket is closed before the connection is established."

I've checked on socket.io issues on https://github.com/LearnBoost/socket.io/issues/798 and I see other people having similar problems. Anyone knows how to fix this...? Or do I just have to ditch socket.io and use something like SockJS?

Christian Gutierrez

unread,
Jan 22, 2015, 7:28:16 AM1/22/15
to sock...@googlegroups.com
Hi Abramovick, did you try sticky-session? I have a working version with express 4 and socket.io 1.2.1
Reply all
Reply to author
Forward
0 new messages