MessageRoom(string, Action<bool, SWLobbyError>) Method

Namespace: SWNetwork.Lobby

Called by players to begin an asynchronous operation to send message to other players in the same room using the specified string messageData.

Declaration

public void MessageRoom(string messageData, Action<bool, SWLobbyError> callback)

Parameters

Type

Description

messageData

string

String message data.

callback

Action<bool, SWLobbyError>

The method to invoke when the message room operation is complete.

Overloads

MessageRoom(object, Action) Method

Called by players to begin an asynchronous operation to send message to other players in the same room using the specified serializable object messageData.

Declaration

public void MessageRoom(object messageData, Action<bool, SWLobbyError> callback)

Parameters

Type

Description

messageData

object

Serializable object message data.

callback

Action<bool, SWLobbyError>

The method to invoke when the message room operation is complete.

Last updated