Multiple connections open when refreshing browser.

56 views
Skip to first unread message

varghes...@gmail.com

unread,
Apr 20, 2015, 3:04:17 AM4/20/15
to soc...@googlegroups.com
Hi,
I am a newbie to NodeJS. And in my work, i'm trying to send back some data to client using websocket using sockjs in server and client. But as it was noticed, as browser refreshes, the socket gets closed which seems ok. But on refresh, instead of creating a single connection, multiple connections with same connection id opens up.

This is the server log regarding the issue.

GET /echo/info 4ms 200
util.print: Use console.log instead
GET /echo/588/r27yia3l/websocket 6ms (unfinished)
util.print: Use console.log instead
Connection Created with idf5c2f8f1-cb26-4da5-bd87-6468e7dde977
util.print: Use console.log instead
socketf5c2f8f1-cb26-4da5-bd87-6468e7dde977 is closed
util.print: Use console.log instead
GET /echo/info 2ms 200
util.print: Use console.log instead
GET /echo/229/9w1tyw2q/websocket 3ms (unfinished)
util.print: Use console.log instead
Connection Created with id0840642b-7540-434e-9c64-8cbed8f3e21c
util.print: Use console.log instead
Connection Created with id0840642b-7540-434e-9c64-8cbed8f3e21c

Any help would be appreciated.

Thanks
Varghese
Reply all
Reply to author
Forward
0 new messages