Skip to content

Handling Server Query Response

After sending a request packet, the server must always respond with a packet. If the server does not recognize the request, it can send a Not implemented packet in response so the system will detect that the server cannot handle the request and report back that there is an error and cannot perform the request.

When the server acknowledges the request, it must send the Acknowledged packet back. If the request has a specific response like a Server information response, don’t send the acknowledged packet back but only the response for that specific response.

The Payload

The payload data in a response packet is always a "json" data blob or empty. The length of the payload is mentioned in the packet's header.

Continue reading: Available Opcodes