dead simple signalling for webrtc.
Think of this as a message broker service. It allows you to pass messages to a predetermined reciever. We use this as a lightweight replacement for a signalling server, where both clients have known identities. This saves us from the more complex logic of tracking live clients, and communicating peer 'join' and 'leave' events.
Note: To see logs, use the environment variable
DEBUGwith thedssnamespace. IE:set DEBUG=dss*.
You'll need to install nodejs to leverage this service.
First install dependencies with npm - from the project directory run: npm install. Then run the service with npm start from the project directory.
Without the DEBUG environment variable set as-documented above, there will be no output from the process indicating a successful start.
Use GET to /data/:id where :id identifies your client
GET /data/user1 HTTP/1.1
Host: localhost:3000
404
<emptyBody>
GET /data/user1 HTTP/1.1
Host: localhost:3000
200
<message data>
Use POST to /data/:id where :id identifies the destination client. The body is your message. MIME not required.
POST /data/user1 HTTP/1.1
Host: localhost:3000
<message data>
200
<emptyBody>
MIT