Because send() no longer sends messages when the connection is closed, but queues them, it's probably a good idea to allow the processing of messages that are not "special" messages (heartbeats, handshakes, etc).
This also helps in ensuring that few messages are actually lost when the connection is lost.
Because
send()
no longer sends messages when the connection is closed, but queues them, it's probably a good idea to allow the processing of messages that are not "special" messages (heartbeats, handshakes, etc).This also helps in ensuring that few messages are actually lost when the connection is lost.