Jaa


WebSocketServer(WebSocket, RequestHandler) Constructor

Definition

Initializes a new instance of the WebSocketServer class. Throws ArgumentNullException on null arguments.

public WebSocketServer (System.Net.WebSockets.WebSocket socket, Microsoft.Bot.Streaming.RequestHandler requestHandler);
new Microsoft.Bot.Streaming.Transport.WebSockets.WebSocketServer : System.Net.WebSockets.WebSocket * Microsoft.Bot.Streaming.RequestHandler -> Microsoft.Bot.Streaming.Transport.WebSockets.WebSocketServer
Public Sub New (socket As WebSocket, requestHandler As RequestHandler)

Parameters

socket
WebSocket

The WebSocket of the underlying connection for this server to be built on top of.

requestHandler
RequestHandler

A RequestHandler to process incoming messages received by this server.

Applies to