Click or drag to resize

WebSocketMessageWriter Class

[This is preliminary documentation and is subject to change.]

A MessageWriter implementation that writes JSON-RPC message into WebSocket.
Inheritance Hierarchy
SystemObject
  JsonRpc.StreamsMessageWriter
    JsonRpc.WebSocketsWebSocketMessageWriter

Namespace:  JsonRpc.WebSockets
Assembly:  JsonRpc.WebSockets (in JsonRpc.WebSockets.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public class WebSocketMessageWriter : MessageWriter

The WebSocketMessageWriter type exposes the following members.

Constructors
  NameDescription
Public methodWebSocketMessageWriter(WebSocket)
Initializes a message reader from WebSocket.
Public methodWebSocketMessageWriter(WebSocket, Int32)
Initializes a message reader from WebSocket.
Top
Properties
  NameDescription
Protected propertyDisposalToken (Inherited from MessageWriter.)
Public propertyWebSocket
Gets the underlying WebSocket.
Top
Methods
  NameDescription
Protected methodDeserializeMessage
Writes a JSON-RPC message to the specified stream.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from MessageWriter.)
Protected methodDispose(Boolean) (Inherited from MessageWriter.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteAsync
Asynchronously writes a message.
(Overrides MessageWriterWriteAsync(Message, CancellationToken).)
Top
Remarks
You can use this class with StreamRpcServerHandler or StreamRpcClientHandler.
See Also