SocketSignal WebSocket is a signaling server and client for WebRTC peer connections using simple-websocket and reconnecting-websocket. Current stable version is 10.0.7. It provides a WebSocket-based transport for the socket-signal protocol, enabling WebRTC signaling with automatic reconnection and multiple server fallback. Key differentiators include built-in heartbeat support, reconnection logic via reconnecting-websocket, and integration with simple-peer for data channels. It is actively maintained by GEUT.
npm install socket-signal-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a SocketSignalWebsocketClient, opens connection, joins a topic, and connects to a discovered peer via WebRTC.
Implement custom retry logic around client.open() if multiple fallbacks may all fail.
Always configure heartbeat interval and timeout to ensure connectivity checks.
Set global simplePeer options in constructor; if per-connection tuning is needed, consider wrapping the client.
Switch to named imports: import { SocketSignalWebsocketClient } from 'socket-signal-websocket'Replace client.close() with client.destroy()
Run: npm install socket-signal-websocket
Use: import { SocketSignalWebsocketClient } from 'socket-signal-websocket'Use dynamic import: const { SocketSignalWebsocketClient } = await import('socket-signal-websocket')Check that peersForThatTopic returns valid peers and that connect returns a valid peer object with ready() method.