Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw a ConnectionException if the connection ends #25

Closed

Conversation

romainneutron
Copy link
Contributor

This is a fix for #24

I think we should move the stream_socket_client call when React\Stomp\Client::connect is called. We could provide automatic reconnection that way.

@igorw
Copy link
Contributor

igorw commented Apr 5, 2013

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.

@romainneutron
Copy link
Contributor Author

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 ?

@igorw
Copy link
Contributor

igorw commented Apr 5, 2013

Sounds good, yes.

blex18 added a commit to blex18/stomp that referenced this pull request Feb 11, 2015
@romainneutron romainneutron deleted the disconnections branch June 22, 2016 21:39
teefax pushed a commit to teefax/stomp that referenced this pull request Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants