WebSocketClient(String, RequestHandler, Object) Constructor
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.
Initializes a new instance of the WebSocketClient class. Throws ArgumentNullException if URL is null, empty, or whitespace.
public WebSocketClient (string url, Microsoft.Bot.Streaming.RequestHandler requestHandler = default, object handlerContext = default);
new Microsoft.Bot.Streaming.Transport.WebSockets.WebSocketClient : string * Microsoft.Bot.Streaming.RequestHandler * obj -> Microsoft.Bot.Streaming.Transport.WebSockets.WebSocketClient
Public Sub New (url As String, Optional requestHandler As RequestHandler = Nothing, Optional handlerContext As Object = Nothing)
Parameters
- url
- String
The URL of the remote server to connect to.
- requestHandler
- RequestHandler
Optional RequestHandler to process incoming messages received by this server.
- handlerContext
- Object
Optional context for the RequestHandler to operate within.