Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Abstract class: RT.Servers.WebSocket

Summary

Provides the base class for your application to implement a WebSocket connection. Derive from this class and then pass an instance of your derived class to HttpResponse.WebSocket(WebSocket, string, HttpResponseHeaders).

Instance methods

voidCloses the WebSocket connection.
object
  • Overrides: MarshalByRefObject.InitializeLifetimeService()
See base.
void
SendMessage(byte[] binaryMessage)
Sends a binary message to the client.
void
SendMessage(IEnumerable<byte[]> fragmentedBinaryMessage)
Sends to the client a binary message that is provided as a sequence of chunks.
void
SendMessage(string textMessage)
Sends a text message to the client.
void
SendMessage(IEnumerable<string> fragmentedTextMessage)
Sends to the client a text message that is provided as a sequence of chunks.
void Sends a text message containing a JSON object to the client.
void
SendMessage(byte opcode, byte[] payload)
Sends a message to the client.