Skip to main content
Version: 5.11.8

SendDataToInGameRoom

public void SendDataToInGameRoom(byte[] data);
public void SendDataToInGameRoom(byte[] data, int offset, int length);

Parameters

ValueTypeDescription
databyte[]Byte array
offsetintLocation to start reading data in byte array
lengthintLength of data to read in byte array(from offset)

Description

Transmits key input value or a series of game logic result values to the in-game server.
The server will broadcast the transmitted data to all clients currently participating in the game room.

  • Clients that sent data to the server are included in 'all clients'.
    For more information on how to transform the data to be sent as a byte array, please refer to the Packet Design documentation.
    When sending data to a server, throttling is applied. For more information on throttling, please refer to the Throttling documentation.

Example

Backend.Match.SendDataToInGameRoom(data);