Skip to main content

Receive Data

Description​

FMNetworkManager is required, when you are executing below commands.


Receiver Events​

The received data can be passed into your own function, which be invoked when data arrive. fm-network-playersettings


Example function​

Example functions of how you can read the data from our Receiver Events. It’s also compatible with Unity Event Listener.

public void Action_ProcessStringData(string _string)
{
Debug.Log("Received string: " + _string);
}

public void Action_ProcessByteData(byte[] _byte)
{
Debug.Log("Received byte[] : " + _byte.Length);
}

public void Action_ShowRawByteLength(byte[] _byte)
{
Debug.Log("get byte length: " + _byte.Length);
}