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.
connectionCount is unreliable. If you call res.close() the disconnect event can be fired multiple times. Because connectionCount was being decremented in the disconnect handler (called multiple times), you end up with a situation where the number of connections doesn't match the connectionCount.
connectionCount is unreliable. If you call res.close() the disconnect event can be fired multiple times. Because connectionCount was being decremented in the disconnect handler (called multiple times), you end up with a situation where the number of connections doesn't match the connectionCount.