In-memory cache holding active Peer wrapper instances.
Event emitter instance for subscribing to connect, disconnect, and receive events.
Underlying WebAssembly Host instance.
Attaches a WebRTC RTCDataChannel for transporting ENet packet payloads.
Open RTCDataChannel instance.
Checks for queued ENet events.
Initiates a connection request to a peer endpoint over WebRTC.
Target host IP address.
Target host port.
Number of ENet channels to allocate.
User data integer passed in connect request.
Connected Peer wrapper instance.
Dispatches pending ENet network events synchronously.
Starts an asynchronous polling loop to process ENet events.
Polling interval duration in milliseconds (default: 15ms).
Polling options such as auto-freeing received packets.
Stops the active event polling loop.
High-level Browser ENet Server host configured for WebRTC server specs.