This is a part of a larger project that I've worked on and I figured other people might find it useful.
Project: https://github.com/aidv/websockets-callback
In my project I send data to a server using WebSockets and then waits for a response until the data has been processed.
Once a response is received a callback is executed and the user is notified.
My library simplifies such a flow a lot and code can be written like one would write any callback driven code.
Top comments (0)