Compartir vía


ClientWebSocketFactory.CreateWebSocket Método

Definición

Crea un nuevo socket web con la conexión especificada.

public:
 abstract System::Net::WebSockets::WebSocket ^ CreateWebSocket(System::IO::Stream ^ connection, System::ServiceModel::Channels::WebSocketTransportSettings ^ settings);
public abstract System.Net.WebSockets.WebSocket CreateWebSocket (System.IO.Stream connection, System.ServiceModel.Channels.WebSocketTransportSettings settings);
abstract member CreateWebSocket : System.IO.Stream * System.ServiceModel.Channels.WebSocketTransportSettings -> System.Net.WebSockets.WebSocket
Public MustOverride Function CreateWebSocket (connection As Stream, settings As WebSocketTransportSettings) As WebSocket

Parámetros

connection
Stream

La conexión de socket web.

settings
WebSocketTransportSettings

Configuración de socket web.

Devoluciones

Un nuevo objeto WebSocket.

Se aplica a