instance method Server#onClientClose
Server#onClientClose(client) → undefined
-
client
(Client
) – The connection instance. Note that the connection to the client has been closed at this point, and callingClient#send
orClient#close
will throw an exception.
Event handler that is called every time a WebSocket client disconnects
from this server. This function should be overridden in a subclass to
actually be any useful. Be careful not to call Client#send
or
Client#close
on the client
instance, since it's socket
connection has been closed.