Closed romainneutron closed 8 years ago
This should really be an error
event instead of an exception. Or possibly an end
event. Also, what if the client closed the connection intentionally? That case needs to be handled as well.
You are right, I'm gonna work deeper on this issue tomorrow.
Are you okay to move the stream_socket_client
at connect
instead of construction ?
Sounds good, yes.
This is a fix for #24
I think we should move the
stream_socket_client
call whenReact\Stomp\Client::connect
is called. We could provide automatic reconnection that way.