[This documentation is preliminary and is subject to change.]
Provides access to network communication that allows reading and writing using a WebSocket.
Syntax
Attributes
- GuidAttribute("f877396f-99b1-4e18-bc08-850c9adf156e")
- VersionAttribute(NTDDI_WIN8)
Members
The IWebSocket interface has these types of members:
Events
The IWebSocket interface has these events.
| Event | Description |
|---|---|
| Closed | Occurs when a close frame is received on the IWebSocket object as part of the close handshake. |
Methods
The IWebSocket interface has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| Close | Closes the IWebSocket. |
| ConnectAsync | Starts an asynchronous operation to connect to a remote network destination on a IWebSocket object. |
| SetRequestHeader | Adds an HTTP request header to the HTTP request message used in the WebSocket protocol handshake by the IWebSocket object. |
Properties
The IWebSocket interface has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the output stream to write to the remote network destination on a IWebSocket object. |
Requirements
|
Minimum supported client | Windows 8 Release Preview |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
|
DLL |
|
See also
Build date: 5/22/2012
