pub unsafe extern "C" fn c4socket_closeRequested(
socket: *mut C4Socket,
status: c_int,
message: C4String,
)Expand description
Notifies LiteCore that the peer has requested to close the socket using the WebSocket protocol.
(Should only be called by sockets whose factory’s framing equals to kC4NoFraming.)
LiteCore will call the factory’s requestClose callback in response when it’s ready to
acknowledge the close.
@param socket The socket.
@param status The WebSocket status sent by the peer, typically 1000.
@param message An optional human-readable message sent by the peer.