Use WebSocket events instead of callbacks
Compiled source