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

Add closeEventCallback to expose the websocket CloseEvent so that the #23

Merged
merged 1 commit into from Feb 11, 2018

Conversation

dillon-sellars
Copy link

I have a use case where I need to access the websocket CloseEvent and do things like if (closeEvent.code === 1008).... This PR adds an closeEventHandler that passes along the CloseEvent from the @ws.onclose handler.

@kum-deepak
Copy link
Member

Looks all good, I will merge it. Will it be possible to add to docs. If not I will add those.

Many thanks!

@dillon-sellars
Copy link
Author

Hi Deepak,

Thanks for the quick response and for keeping this library updated. I'll add something to the docs.

@kum-deepak
Copy link
Member

One step I have missed in Contribut.md - before committing your next change set, please run cake build. It will update generated files (JS, minified JS, HTML docs).

I will update the documentation later.

@dillon-sellars dillon-sellars force-pushed the feature/closeEvent branch 2 times, most recently from 9580252 to 1074cb4 Compare February 10, 2018 19:12
consumer of this library can make decisions on `CloseEvent.code` and
other properties of the CloseEvent.
Cleanup _parseConnect code
@dillon-sellars
Copy link
Author

Updated -- also took a stab at cleaning up _parseConnect by handling all the special cases first.

@kum-deepak kum-deepak merged commit 30c35a3 into stomp-js:master Feb 11, 2018
@kum-deepak
Copy link
Member

Great!

@kum-deepak
Copy link
Member

Planning for next version of stompjs is on the way. Your participation will be really appreciated, please join at stomp-js/stompjs#1

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.

None yet

2 participants