Click or drag to resize

WebSocketMessageReader Class

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

A MessageReader implementation that reads JSON-RPC message from WebSocket.
Inheritance Hierarchy

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

The WebSocketMessageReader type exposes the following members.

Constructors
  NameDescription
Public methodWebSocketMessageReader(WebSocket)
Initializes a new instance of the WebSocketMessageReader class
Public methodWebSocketMessageReader(WebSocket, Int32, Int32)
Initializes a message reader from WebSocket.
Top
Properties
  NameDescription
Protected propertyDisposalToken
A CancellationToken that is cancelled when the current object has been disposed.
(Inherited from MessageReader.)
Public propertyWebSocket
Gets the underlying WebSocket.
Public propertyWebSocketClose
Gets a Task that completes with status code when the underlying WebSocket is closed.
Top
Methods
  NameDescription
Protected methodDeserializeMessage
Loads a JSON-RPC message from the specified stream.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from MessageReader.)
Protected methodDispose(Boolean) (Inherited from QueuedMessageReader.)
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 methodReadAsync
Asynchronously reads the next message that matches the
(Inherited from QueuedMessageReader.)
Protected methodReadDirectAsync
When overridden in the derived class, directly asynchronously reads the next message.
(Overrides QueuedMessageReaderReadDirectAsync(CancellationToken).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
You can use this class with StreamRpcServerHandler or StreamRpcClientHandler.
See Also