MessageWebSocketInformation MessageWebSocketInformation MessageWebSocketInformation MessageWebSocketInformation MessageWebSocketInformation Class


Provides socket information on a MessageWebSocket.

public : sealed class MessageWebSocketInformation : IWebSocketInformation, IWebSocketInformation2
struct winrt::Windows::Networking::Sockets::MessageWebSocketInformation : IWebSocketInformation, IWebSocketInformation2
public sealed class MessageWebSocketInformation : IWebSocketInformation, IWebSocketInformation2
Public NotInheritable Class MessageWebSocketInformation Implements IWebSocketInformation, IWebSocketInformation2
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


MessageWebSocketInformation can be called any time after the MessageWebSocket has been created.

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

Version history

Windows version SDK version Value added
1607 14393 ServerCertificate
1607 14393 ServerCertificateErrors
1607 14393 ServerCertificateErrorSeverity
1607 14393 ServerIntermediateCertificates


BandwidthStatistics BandwidthStatistics BandwidthStatistics BandwidthStatistics BandwidthStatistics

Gets bandwidth information for network data transfer on a MessageWebSocket 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 MessageWebSocket object.

Protocol Protocol Protocol Protocol Protocol

Gets the WebSocket sub-protocol negotiated with the server during WebSocket handshake on a MessageWebSocket 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 WebSocket connection.

ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity

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

ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates

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

See also