Skip to content

Commit 52854f2

Browse files
committed
Removing duplicate info in the README
1 parent 6d4a529 commit 52854f2

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

README.md

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -457,59 +457,6 @@ $opentok->dial($sessionId, $token, $sipUri, $options);
457457
For more information, see the [OpenTok SIP Interconnect developer
458458
guide](https://tokbox.com/developer/guides/sip/).
459459

460-
## Force Disconnect
461-
462-
Your application server can disconnect a client from an OpenTok session by calling the `forceDisconnect($sessionId, $connectionId)`
463-
method of the `OpenTok\OpenTok` class.
464-
465-
```php
466-
use OpenTok\OpenTok;
467-
468-
// Force disconnect a client connection
469-
$opentok->forceDisconnect($sessionId, $connectionId);
470-
```
471-
472-
## Sending Signals
473-
474-
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.
490-
491-
```php
492-
use OpenTok\OpenTok;
493-
494-
// Send a signal to a specific client
495-
$signalPayload = array(
496-
'data' => 'some signal message',
497-
'type' => 'signal type'
498-
);
499-
$connectionId = 'da9cb410-e29b-4c2d-ab9e-fe65bf83fcaf';
500-
$opentok->signal($sessionId, $signalPayload, $connectionId);
501-
502-
// Send a signal to everyone in the session
503-
$signalPayload = array(
504-
'data' => 'some signal message',
505-
'type' => 'signal type'
506-
);
507-
$opentok->signal($sessionId, $signalPayload);
508-
```
509-
510-
For more information, see the [OpenTok signaling developer
511-
guide](https://tokbox.com/developer/guides/signaling/).
512-
513460
## Samples
514461

515462
There are three sample applications included in this repository. To get going as fast as possible, clone the whole

0 commit comments

Comments
 (0)