:sig
function ws_close(connection_id : string = "", request : capture dval) bool

:params
request : the caller's request, captured when omitted
connection_id : client ID. The default is the current client.

:returns
`true` when the server queues the close.

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

:example capy ws
ws_close()

:see-group
websocket
