OptionalconnectionConnection timeout in seconds. By default, it is set to 15 seconds. Use 0 to disable the timeout.
OptionaldriverSignaling driver instance for message exchange between peers. If omitted, a default in-memory driver is used, which is suitable for testing purposes only.
OptionaliceAn array of objects, each describing one server which may be used by the ICE agent; these are typically STUN and/or TURN servers. If this isn't specified, the connection attempt will be made with no STUN or TURN server available, which limits the connection to local peers.
OptionaliceICE policy used by created RTCPeerConnection instances. If set to 'relay', only relay candidates will be used, otherwise all candidates will be considered.
OptionalidUnique peer identifier. A random UUID is generated when omitted.
OptionalsignalingCompress signaling messages to reduce bandwidth usage by about 30%. Enabled by default.
OptionalsignalingEncrypt signaling messages with AES-GCM using the provided encryption key. Disabled by default.
OptionalsignalingHash namespaces in signaling messages for privacy. Disabled by default.
Configuration options for creating a Peer instance.