Click or drag to resize

StrixNetworkSendRoomRelay Method (RoomRelayMessage, RoomRelayEventHandler, FailureEventHandler, RequestConfig)

Sends a relay message to all match room members using RoomRelayMessage.

Namespace:  SoftGear.Strix.Unity.Runtime
Assembly:  StrixUnityRuntime (in StrixUnityRuntime.dll) Version: 1.5.0
Syntax
C#
public void SendRoomRelay(
	RoomRelayMessage message,
	RoomRelayEventHandler handler,
	FailureEventHandler failureHandler,
	RequestConfig config = null
)

Parameters

message
Type: SoftGear.Strix.Client.Room.MessageRoomRelayMessage
The message that will be sent.
handler
Type: SoftGear.Strix.Unity.Runtime.EventRoomRelayEventHandler
This callback is invoked when the relay message has been sent successfully.
failureHandler
Type: SoftGear.Strix.Unity.Runtime.EventFailureEventHandler
This callback is invoked if the message could not be sent for some reason.
config (Optional)
Type: SoftGear.Strix.Client.Core.RequestRequestConfig
If not null, used to configure the request timeout. Default timeout is 30 seconds. See RequestConfig for more details.
Exceptions
ExceptionCondition
NullReferenceExceptionThrows if you're not joined to a room.
Remarks


Possible exception types in FailureEventArgs's cause:
ErrorCodeException Strix error which can be further separated by an error code:
ConnectionErrorFailed to send the request because of a connection error.
RequestTimeoutServer did not respond within the specified timeout interval.
MessageLimitReachedThe limit for messages per second is reached (configurable on the Strix Cloud).
NotRoomMemberYou're trying to send a relay message while not being joined to a room.
LockTimeout
See Also