Create a new instance of the driver.
Optional BroadcastChannel name (defaults to 'peerix').
Publish a signaling message to a namespace.
Target namespace segments.
Signaling payload to deliver.
Unsubscribe a previously registered namespace handler.
Namespace segments used for message routing.
Handler reference originally passed to on.
Subscribe to signaling messages in a namespace.
Namespace segments used for message routing.
Callback invoked with message payload.
BroadcastChannel-based signaling driver for intra-origin communication.
This driver is useful for testing and debugging purposes, but is not suitable for production use due to its limitations (e.g. same-origin restriction).
Example