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

Using Stompjs as React hook #470

Open
livemehere opened this issue Sep 14, 2022 · 4 comments
Open

Using Stompjs as React hook #470

livemehere opened this issue Sep 14, 2022 · 4 comments

Comments

@livemehere
Copy link

livemehere commented Sep 14, 2022

I'm struggling with using StompJS.
because I've used SocketIO but I've never used Stomp.
It is little hard to understand Mechanism.

The entry barrier seems high for beginners.
Can you add the simple hook I made to doc?
I wanna contribute to this!

https://www.npmjs.com/package/usestomp-hook

If you accept, I'm going to expand the document to English.

@kum-deepak
Copy link
Member

Many thanks for working on this. I do agree that using stompjs is hard. I will be happy to include this in the documentation and samples.

I will suggest the following changes (these should help your use-case as well):

Please let me know which of the above you would be able to work.

Currently, samples are hosted at https://github.com/stomp-js/samples and documentation at https://stomp-js.github.io/

@livemehere
Copy link
Author

livemehere commented Sep 15, 2022

Hey!
I applied it as you said.

  • Change to Latest syntax
  • Remove SockJS dependency (using the latest syntax, it just happened)
  • It was confirmed that the reconnection was automatic.
  • and update documentation

https://github.com/livemehere/usestomp

@kum-deepak
Copy link
Member

Many thanks 🙏

I will add it in documentation section - in examples and FAQs

@livemehere
Copy link
Author

Thanks! :)

@kum-deepak kum-deepak changed the title I made Stomp hook Using Stompjs as React hook Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants