gdaws / stompit

STOMP client library for node.js
MIT License
163 stars 36 forks source link

Async usage? #129

Open paul-uz opened 2 years ago

paul-uz commented 2 years ago

Stompit seems to stop working when I use it inside of an async function.

With the function being called synchronously (removing any async calls inside of it) and the messages are sent without issue.

Is there a way to wrap the stompit send commands so they can be called inside an async function?