![]() |
Diarkis C# Client SDK
|
Directly sends and receives messages from another user by passing thier user ID only. More...
Public Member Functions | |
bool | Setup (Ws ws) |
DirectMessage class does not have network transport. Set up WsDirectMessage class instance with Diarkis WebSocket class instance. More... | |
override void | Send (string uid, byte[] message) |
Sends a direct message to the remote user. The first message must "find" the remote client and it may take some time (possibly seconds). If DirectMessage is set up with Diarkis Udp class, the message will be sent as a plain UDP message. More... | |
override void | Disconnect (string uid, byte[] message) |
Disconnects the direct message channel with the remote client and sends a custom disconnect message. If Diarkis Udp class is used, the disconnect message is sent as an RUDP message. More... | |
Events | |
override MessageHandler | OnMessage |
override MessageHandler | OnDisconnect |
override MessageHandler | OnConnect |
Additional Inherited Members |
Directly sends and receives messages from another user by passing thier user ID only.
|
inlinevirtual |
Disconnects the direct message channel with the remote client and sends a custom disconnect message. If Diarkis Udp class is used, the disconnect message is sent as an RUDP message.
uid | User ID of the remote client to disconnect from. |
message | Disconnect message to be delivered to the remote client. |
Reimplemented from Diarkis.Modules.DirectMessage.
|
inlinevirtual |
Sends a direct message to the remote user. The first message must "find" the remote client and it may take some time (possibly seconds). If DirectMessage is set up with Diarkis Udp class, the message will be sent as a plain UDP message.
uid | User ID of the remote client to deliver the direct message to. |
message | Message byte array to be delivered. |
Reimplemented from Diarkis.Modules.DirectMessage.
|
inline |
DirectMessage class does not have network transport. Set up WsDirectMessage class instance with Diarkis WebSocket class instance.
tcp | Diarkis Udp class instance to be used as internal network transport for DirectMessage. |