WebSocket is already in CLOSING or CLOSED state.

5,280 views
Skip to first unread message

afany firdaus

unread,
Dec 3, 2014, 11:27:06 PM12/3/14
to ve...@googlegroups.com, Bagus Arianto
Dear Masters,
I have issues using vert.x websocket. When i access my application, the websocket often CLOSED. I don't understand why this is happend. can anyone help me or just give me advice about this issues?

thank you

Farzad Pezeshkpour

unread,
Dec 4, 2014, 3:46:16 AM12/4/14
to ve...@googlegroups.com
Hard to know what's going wrong without code. Could you create a gist (https://gist.github.com) and post back a link on this thread please?

Thanks
Fuzz

Farzad Pezeshkpour

unread,
Dec 4, 2014, 4:47:46 PM12/4/14
to ve...@googlegroups.com
I didn't see the embedded image on my phone, whilst on the train this morning :-)
Are you using SockJS or web sockets directly? 
The log message seems to indicate that the client side javascript is attempting to close the socket when in fact the server has already disconnected it. Not a major error, unless that's not expected behaviour.
Without understand more about your application (or merely example code that reproduces the issue), it's hard to guess.

regards
Fuzz.

afany firdaus

unread,
Dec 4, 2014, 8:32:32 PM12/4/14
to ve...@googlegroups.com, b4gus....@gmail.com
@farzad
can i handle this socket close?? just like close socket handler...
is there something like that??
so when the webSocket is closed, i can automatically refresh the page and get back into the session

Farzad Pezeshkpour

unread,
Dec 5, 2014, 3:47:03 AM12/5/14
to ve...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages