Capy-Bearer Documentation

ws_send

host call

Capy

function ws_send(message : string, binary : bool) bool
function ws_send(message : string, binary : bool, scope : string) bool

Description

ws_send() sends a message to every client in the current scope. Pass scope to select a scope.

Parameters

message : message bytes to send

binary : true for a binary frame

scope : scope identifier

Return Values

true when the server queues the message for a client.

Example

Capy

ws_send("hello", false)