-api-id | -api-type |
---|---|
M:Windows.Networking.Sockets.ServerStreamWebSocket.Close(System.UInt16,System.String) |
winrt method |
Closes the ServerStreamWebSocket object and indicates a reason for the closure.
Status code indicating the reason for closure. The list of appropriate codes is on the IANA (Internet Assigned Numbers Authority) WebSocket Protocol Registry and is also documented on MDN.
Optional UTF-8-encoded data with additional information about the closure.
internetClientServer, privateNetworkClientServer