Skip to content

marconi/signalbouncer

Repository files navigation

SignalBouncer

WebRTC signaling server.

  • Multi-protocol
  • Config forwarding (ie. ICE servers)

Protocols

  • XHR + SSE

Todos

  • Support for XHR Long-Polling
  • Support for Websocket
  • Move room to external for service immutability

Endpoints

Subscribe to signal stream, once subscribed it'll send an initial event with peerId as the data. After that, future events are all signals.

GET /signal/stream/:protocol/:roomName

Emit signal:

POST /signal/:roomName/:peerId

Example

var source = new EventSource('http://127.0.0.1:8080/signal/stream/sse/awesomeroom')
source.onopen = function() {
  console.log('sse connected')
}

source.onerror = function(err) {
  console.log('sse error:', err)
}

source.addEventListener('config', function(event) {
  console.log('config:', JSON.parse(event.data))
})

source.addEventListener('peerId', function(event) {
  console.log('peerId:', JSON.parse(event.data))
})

source.addEventListener('signal', function(event) {
  console.log('signal:', event.data)
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages