In-memory cache holding active Peer wrapper instances.
Event emitter instance for subscribing to connect, disconnect, and receive events.
Underlying WebAssembly Host instance.
Checks for queued ENet events.
Connects to a remote ENet host endpoint.
Target host IP address.
Target host UDP port.
Number of ENet channels to allocate.
User data integer passed in connect request.
Connected Peer wrapper instance.
Dispatches pending ENet network events synchronously.
Binds the underlying UDP socket to the configured IP address and port.
A promise resolving when the socket binding is established.
Starts an asynchronous polling loop to process incoming and outgoing ENet events at regular intervals.
Polling interval duration in milliseconds (default: 15ms).
Polling options such as auto-freeing received packets.
Stops the active event polling loop.
High-level Node.js ENet Server host configured for server protocol specs.