Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void SendMessage(byte, byte[])

Declaration

public void SendMessage(
    byte opcode,
    byte[] payload
)

Summary

Sends a message to the client.

Parameters

byteopcode Specifies the opcode byte in the message header. Currently the only valid values defined in the protocol are 1 for text messages and 2 for binary messages.
byte[]payload The message to send as a sequence of bytes.