ClientWebSocketFactory.CreateWebSocket Method
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.
Creates a new web socket with the specified connection.
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
Parameters
- connection
- Stream
The web socket connection.
- settings
- WebSocketTransportSettings
The web socket settings.
Returns
A new WebSocket object.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.