/photon-realtime-message-client

NetworkClient running on SerializableMessage

Primary LanguageC#MIT LicenseMIT

Photon Realtime Messages

NetworkClient running on SerializableMessage

Requirements

Usage

var networkClient = new NetworkClient(LoadBalancingClient);
networkClient.SendMessage(
    new TestSerializableMessage()
    {
        StringValue = "test"
    }
);

if (networkClient.TryTakeMessage<TestSerializableMessage>(out var message))
{
    Debug.Log(message.StringValue);
}