@pumpkin-plugins/distant-horizons-support-pumpkin API / session/protocol / receiveMessage
Function: receiveMessage()
receiveMessage(
state,peer,bytes):void
Defined in: packages/distant-horizons-support-pumpkin/src/session/protocol.ts:27
Decodes one DH message from a Java player and applies it. A malformed packet or another protocol version closes the session; otherwise it starts, configures or closes the session, cancels a request or queued response, or queues a validated LOD request.
Parameters
state
peer
bytes
Uint8Array
Returns
void