Skip to content

MTY_WebSocketDestroy

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Destroy a WebSocket.

void MTY_WebSocketDestroy(
    MTY_WebSocket ** webSocket
);

Parameters

webSocket (MTY_WebSocket **)

Passed by reference and set to NULL after being destroyed.

This function will attempt to gracefully close the connection with close code 1000.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Net

Clone this wiki locally