Capy-Bearer Documentation

ws_close

host call

Capy

function ws_close(connection_id : string = "") bool

Description

ws_close() closes the current WebSocket client. Pass a client ID to close that client.

Parameters

connection_id : client ID. The default is the current client.

Return Values

true when the server queues the close.

Example

Capy

ws_close()