socketEvents
socketEvents(
o):object
The life of one socket, as three plain callbacks for any WebSocket helper (Hono’s upgradeWebSocket, uWS, …): open(ws), message(text), close(). Messages that arrive while a ticket is being checked wait (at most 8).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”object
close()
Section titled “close()”close():
void
Returns
Section titled “Returns”void
message()
Section titled “message()”message(
text):void
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
open()
Section titled “open()”open(
ws):void
Parameters
Section titled “Parameters”WebSocket
Returns
Section titled “Returns”void