rexxars / sse-channel

Server-Sent Events "channel" where all messages are broadcasted to all connected clients, history is maintained automatically and server attempts to keep clients alive by sending "keep-alive" packets automatically.
MIT License
111 stars 11 forks source link

Find a solution for `flush()` #12

Closed rexxars closed 7 years ago

rexxars commented 8 years ago

We shouldn't use flush() blindly. We need it in the case where the compression middleware has been added, for instance, but by default it'll trigger deprecation warnings from node. Not sure how to fix this, perhaps it's possible to get hold of the native flush method and do a strict equality check?