summaryrefslogtreecommitdiff
path: root/webrtc/signalling/README.md
blob: 7b0573835dc60ec7f27d7ee0a267fdf5df7836e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## Overview

Read Protocol.md

## Dependencies

* Python 3
* pip3 install --user websockets

## Example usage

In three separate tabs, run consecutively:

```console
$ ./generate_cert.sh
$ ./simple-server.py
```

### Session Based

```console
$ ./session-client.py
Our uid is 'ws-test-client-8f63b9'
```

```console
$ ./session-client.py --call ws-test-client-8f63b9
```
### Room Based

```console
$ ./room-client.py --room 123
Our uid is 'ws-test-client-bdb5b9'
Got ROOM_OK for room '123'
```

Another window

```console
$ ./room-client.py --room 123
Our uid is 'ws-test-client-78b59a'
Got ROOM_OK for room '123'
Sending offer to 'ws-test-client-bdb5b9'
Sent: ROOM_PEER_MSG ws-test-client-bdb5b9 {"sdp": "initial sdp"}
Got answer from 'ws-test-client-bdb5b9': {"sdp": "reply sdp"}
```

.. and similar output with more clients in the same room.