Open gritzko opened 8 years ago
https://github.com/maxogden/websocket-stream/blob/master/server.js#L18
FYI, we had to do the opposite trick: "connection" is a standard event we expect from a server, so https://github.com/gritzko/stream-url-ws/blob/master/index.js#L21
Probably you should emit both?
The server already emits both "connection" event (with a plain websocket) and a custom "stream" event.
https://github.com/maxogden/websocket-stream/blob/master/server.js#L18
FYI, we had to do the opposite trick: "connection" is a standard event we expect from a server, so https://github.com/gritzko/stream-url-ws/blob/master/index.js#L21
Probably you should emit both?