method
bun.WebSocketHandler.ping
ping(
): void | Promise<void>;
Called when a ping is received.
Like a binary message, data has the type that binaryType selects. The declared type is the one of the default binaryType.
@param ws
The websocket that received the ping
@param data
The data sent with the ping