Partilhar via


ClientWebSocketFactory.CreateWebSocket Método

Definição

Cria um novo soquete da Web com a conexão 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

Conexão de soquete da Web.

settings
WebSocketTransportSettings

As configurações de soquete da Web.

Retornos

Um novo objeto WebSocket.

Aplica-se a