Message Room

Overview

Sends messages to other players in the same room. The message sender player has to be in a room to use this API.

Maximum size of a message data is 4.5KB.

Example

NetworkClient.Lobby.MessageRoom("Hello", (bool successful, SWLobbyError error) =>{
    if (successful){
        Debug.Log("Sent room message");
    }
    else{
        Debug.Log("Failed to send room message " + error);
    }
});

Last updated