lukeed / sockette

The cutest little WebSocket wrapper! 🧦
MIT License
2.45k stars 81 forks source link

Anyway to do events without callbacks? like my_sockette_instance.on('message', () => { }) #37

Closed jfrux closed 5 years ago

lukeed commented 5 years ago

Nope, sorry! This is because the WS instance swaps out over time, and it would be another 300 bytes to setup that abstraction.

Sorry 😀