Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.99 KB

deviceportalconnection_getservermessagewebsocketforrequest_359673758.md

File metadata and controls

42 lines (28 loc) · 1.99 KB
-api-id -api-type
M:Windows.System.Diagnostics.DevicePortal.DevicePortalConnection.GetServerMessageWebSocketForRequest(Windows.Web.Http.HttpRequestMessage,Windows.Networking.Sockets.SocketMessageType,System.String,System.UInt32,System.UInt32,Windows.Networking.Sockets.MessageWebSocketReceiveMode)
winrt method

Windows.System.Diagnostics.DevicePortal.DevicePortalConnection.GetServerMessageWebSocketForRequest

-description

Returns a server-side message WebSocket for use with Device Portal.

-parameters

-param request

The HTTP request message (found as a property of the DevicePortalConnectionRequestReceivedEventArgs class).

-param messageType

A SocketMessageType value indicating the type of messaging that this WebSocket will use.

-param protocol

The sub-protocol that this WebSocket will use.

-param outboundBufferSizeInBytes

The size, in bytes, of the send buffer to be used for sending data on a ServerMessageWebSocket object.

-param maxMessageSize

The maximum message size, in bytes, for a WebSocket message to be configured on the ServerMessageWebSocket object.

-param receiveMode

A MessageWebSocketReceiveMode value indicating whether this WebSocket will receive either complete or partial messages.

-returns

A server-side message WebSocket object that can be used with Device Portal.

-remarks

-see-also

-examples