I'm thinking of migrating from Socket.io to Sock.js.
But my code is heavily based on custom events, and I'm wondering how to add them on Sock.js, since it doesn’t' support this feature out of the box.
What would you find as the less time-consuming way to do this?
I resolved by using chuckt.
In the source code of the server:
In the client:
Be careful that
once
is not available at the moment in the client.