Share via


CloudAdapter.CreateWebSocketConnection(WebSocket, ILogger) Method

Definition

Creates a StreamingConnection that uses web sockets.

protected virtual Microsoft.Bot.Connector.Streaming.Application.StreamingConnection CreateWebSocketConnection (System.Net.WebSockets.WebSocket socket, Microsoft.Extensions.Logging.ILogger logger);
abstract member CreateWebSocketConnection : System.Net.WebSockets.WebSocket * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Streaming.Application.StreamingConnection
override this.CreateWebSocketConnection : System.Net.WebSockets.WebSocket * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Streaming.Application.StreamingConnection
Protected Overridable Function CreateWebSocketConnection (socket As WebSocket, logger As ILogger) As StreamingConnection

Parameters

socket
WebSocket

WebSocket instance on which streams are transported between client and server.

logger
ILogger

Logger implementation for tracing and debugging information.

Returns

StreamingConnection that uses web socket.

Applies to