WebSocketMessageHandler Constructors   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| WebSocketMessageHandler(WebSocket) | 
						 Initializes a new instance of the WebSocketMessageHandler class that uses the JsonMessageFormatter to serialize messages as textual JSON.  | 
        	
| WebSocketMessageHandler(WebSocket, Int32) | 
						 Initializes a new instance of the WebSocketMessageHandler class.  | 
        	
| WebSocketMessageHandler(WebSocket, IJsonRpcMessageFormatter, Int32) | 
						 Initializes a new instance of the WebSocketMessageHandler class.  | 
        	
WebSocketMessageHandler(WebSocket)
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
Initializes a new instance of the WebSocketMessageHandler class that uses the JsonMessageFormatter to serialize messages as textual JSON.
public WebSocketMessageHandler(System.Net.WebSockets.WebSocket webSocket);
	new StreamJsonRpc.WebSocketMessageHandler : System.Net.WebSockets.WebSocket -> StreamJsonRpc.WebSocketMessageHandler
	Public Sub New (webSocket As WebSocket)
	Parameters
- webSocket
 - WebSocket
 
The WebSocket used to communicate. This will not be automatically disposed of with this WebSocketMessageHandler.
Applies to
WebSocketMessageHandler(WebSocket, Int32)
- Source:
 - WebSocketMessageHandler.cs
 
Initializes a new instance of the WebSocketMessageHandler class.
public WebSocketMessageHandler(System.Net.WebSockets.WebSocket webSocket, int bufferSize = 4096);
	new StreamJsonRpc.WebSocketMessageHandler : System.Net.WebSockets.WebSocket * int -> StreamJsonRpc.WebSocketMessageHandler
	Public Sub New (webSocket As WebSocket, Optional bufferSize As Integer = 4096)
	Parameters
- webSocket
 - WebSocket
 
The WebSocket used to communicate. This will not be automatically disposed of with this WebSocketMessageHandler.
- bufferSize
 - Int32
 
The size of the buffer to use for reading JSON-RPC messages. Messages which exceed this size will be handled properly but may require multiple I/O operations.
Applies to
WebSocketMessageHandler(WebSocket, IJsonRpcMessageFormatter, Int32)
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
- Source:
 - WebSocketMessageHandler.cs
 
Initializes a new instance of the WebSocketMessageHandler class.
public WebSocketMessageHandler(System.Net.WebSockets.WebSocket webSocket, StreamJsonRpc.IJsonRpcMessageFormatter formatter, int sizeHint = 4096);
	new StreamJsonRpc.WebSocketMessageHandler : System.Net.WebSockets.WebSocket * StreamJsonRpc.IJsonRpcMessageFormatter * int -> StreamJsonRpc.WebSocketMessageHandler
	Public Sub New (webSocket As WebSocket, formatter As IJsonRpcMessageFormatter, Optional sizeHint As Integer = 4096)
	Parameters
- webSocket
 - WebSocket
 
The WebSocket used to communicate. This will not be automatically disposed of with this WebSocketMessageHandler.
- formatter
 - IJsonRpcMessageFormatter
 
The formatter to use to serialize JsonRpcMessage instances.
- sizeHint
 - Int32
 
The size of the buffer to use for reading JSON-RPC messages. Messages which exceed this size will be handled properly but may require multiple I/O operations.