StreamWebSocketInformation StreamWebSocketInformation StreamWebSocketInformation StreamWebSocketInformation StreamWebSocketInformation Class

Definition

Provides socket information on a StreamWebSocket object.

public : sealed class StreamWebSocketInformation : IWebSocketInformation, IWebSocketInformation2
struct winrt::Windows::Networking::Sockets::StreamWebSocketInformation : IWebSocketInformation, IWebSocketInformation2
public sealed class StreamWebSocketInformation : IWebSocketInformation, IWebSocketInformation2
Public NotInheritable Class StreamWebSocketInformation Implements IWebSocketInformation, IWebSocketInformation2
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
privateNetworkClientServer internetClient

Remarks

StreamWebSocketInformation can be called any time after the StreamWebSocket has been created.

A StreamWebSocketInformation object is automatically created with the parent StreamWebSocket object. The StreamWebSocket.Information property provides access to the associated StreamWebSocketInformation object.

Properties

BandwidthStatistics BandwidthStatistics BandwidthStatistics BandwidthStatistics BandwidthStatistics

Gets bandwidth information for network data transfer on a StreamWebSocket object.

Note that the returned statistics are based on extended TCP statistics, which are enabled by default on Client versions of Windows, but disabled by default for performance reasons on Server versions of Windows. If extended TCP statistics are not available, all returned numerical statistics are set to 0, and boolean statistics are set to false.

LocalAddress LocalAddress LocalAddress LocalAddress LocalAddress

Gets the IP address associated with a StreamWebSocket object.

Protocol Protocol Protocol Protocol Protocol

Gets the WebSocket sub-protocol negotiated with the server during WebSocket handshake on a StreamWebSocket object.

ServerCertificate ServerCertificate ServerCertificate ServerCertificate ServerCertificate

Gets the certificate provided by the server when a secure WebSocket connection has been established.

ServerCertificateErrors ServerCertificateErrors ServerCertificateErrors ServerCertificateErrors ServerCertificateErrors

Gets a list of the errors that occurred while establishing a secure StreamWebSocket connection.

ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity

Gets the category of an error that occurred making an SSL connection with a StreamWebSocket server.

ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates

Gets the intermediate certificates sent by the server during SSL negotiation when making an SSL connection with a StreamWebSocket server.

See Also