Server.SendToAll Method
Namespace: Riptide
Assembly: RiptideNetworking.dll
Overloads
SendToAll(Message, bool) | Sends a message to all connected clients. |
SendToAll(Message, ushort, bool) | Sends a message to all connected clients except the given one. |
SendToAll(Message, bool)
Sends a message to all connected clients.
public void SendToAll(Message message, bool shouldRelease = true)
Parameters
Message | message |
The message to send. |
bool | shouldRelease |
Whether or not to return the message to the pool after it is sent. |
Remarks
If you intend to continue using the message instance after calling this method, you must set shouldRelease
to false. Release() can be used to manually return the message to the pool at a later time.
SendToAll(Message, ushort, bool)
Sends a message to all connected clients except the given one.
public void SendToAll(Message message, ushort exceptToClientId, bool shouldRelease = true)
Parameters
Message | message |
The message to send. |
ushort | exceptToClientId |
The numeric ID of the client to not send the message to. |
bool | shouldRelease |
Whether or not to return the message to the pool after it is sent. |