Skip to content

MTY_WebSocketWrite

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Write a message to a WebSocket.

bool MTY_WebSocketWrite(
    MTY_WebSocket * ctx,
    const char *    msg
);

Parameters

ctx (MTY_WebSocket *)

An MTY_WebSocket.

msg (const char *)

The string message to send.

Return value

bool

Returns true on success, false on failure. Call MTY_GetLog for details.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Net

Clone this wiki locally