OptionalconnectionConnection timeout in seconds. By default, it is set to 30 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.
OptionalverifyOptional callback to accept or reject incoming peer connections.
Configuration options for creating a Peer instance.