stomp-js / stompjs

Javascript and Typescript Stomp client for Web browsers and node.js apps
Apache License 2.0
738 stars 80 forks source link

Using Stompjs as React hook #470

Open livemehere opened 1 year ago

livemehere commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Hey! I applied it as you said.

https://github.com/livemehere/usestomp

kum-deepak commented 1 year ago

Many thanks :pray:

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

livemehere commented 1 year ago

Thanks! :)