gstreamer/webrtc/signalling
Nirbheek Chauhan 78df1ca74c simple_server: Correctly pass health option
It was completely ignored. Also don't de-serialize options. Just parse
them directly in `__init__`. Less error-prone.
2020-06-18 23:34:48 +10:00
..
Dockerfile Add --disable-ssl option to simple-server.py 2018-06-18 09:02:05 +03:00
generate_cert.sh tests: first pass at some basic browser tests 2020-05-06 06:01:57 +00:00
meson.build tests: first pass at some basic browser tests 2020-05-06 06:01:57 +00:00
Protocol.md Fix heading levels 2018-04-11 19:04:47 +05:30
README.md Improve building documentation 2018-11-22 05:23:15 +00:00
room-client.py simple-server: Add support for multi-party rooms 2017-10-28 19:20:44 +05:30
session-client.py signalling/client.py: Rename to session-client.py 2017-10-28 19:00:03 +05:30
simple_server.py simple_server: Correctly pass health option 2020-06-18 23:34:48 +10:00

Overview

Read Protocol.md

Dependencies

  • Python 3
  • pip3 install --user websockets

Example usage

In three separate tabs, run consecutively:

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

Session Based

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

Room Based

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

Another window

$ ./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.