You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once a Session is created, you can send signals to everyone in the session or to a specific connection.
475
-
You can send a signal by calling the `signal($sessionId, $payload, $connectionId)` method of the
476
-
`OpenTok\OpenTok` class.
477
-
478
-
The `$sessionId` parameter is the session ID of the session.
479
-
480
-
The `$payload` parameter is an associative array used to set the
481
-
following:
482
-
483
-
-`data` (string) -- The data string for the signal. You can send a maximum of 8kB.
484
-
485
-
-`type` (string) -- — (Optional) The type string for the signal. You can send a maximum of 128 characters, and only the following characters are allowed: A-Z, a-z, numbers (0-9), '-', '\_', and '~'.
486
-
487
-
The `$connectionId` parameter is an optional string used to specify the connection ID of
488
-
a client connected to the session. If you specify this value, the signal is sent to
489
-
the specified client. Otherwise, the signal is sent to all clients connected to the session.
0 commit comments