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

Custom automatic ping message #24

Closed Spissable closed 4 years ago

Spissable commented 5 years ago

This is a small addition that optionally allows custom messages for the automatic ping, replacing the generic ":" string. A test case for the new behavior is included.

Feel free to give me any feedback, if you'd like something to be changed.