Type of issue
Code doesn't work
Description
WebSocket.CloseStatus Property (8.0) states, "If the close handshake has not been initiated yet, WebSocketCloseStatus.None is returned."
Actually, WebSocketCloseStatus.None does not exist. Before the close handshake begins, CloseStatus is null, as noted in the field declaration. (The actual CloseStatus property just returns the backing field.)
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.net.websockets.websocket.closestatus?view=net-8.0
Content source URL
https://github.com/dotnet/dotnet-api-docs-temp/blob/live/xml/System.Net.WebSockets/WebSocket.xml
Document Version Independent Id
309b1648-c776-ccd8-f070-942978354273
Platform Id
a928965b-7541-0003-9034-7d2e0789857b
Article author
@karelz
Type of issue
Code doesn't work
Description
WebSocket.CloseStatus Property (8.0) states, "If the close handshake has not been initiated yet, WebSocketCloseStatus.None is returned."
Actually,
WebSocketCloseStatus.Nonedoes not exist. Before the close handshake begins,CloseStatusisnull, as noted in the field declaration. (The actual CloseStatus property just returns the backing field.)Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.net.websockets.websocket.closestatus?view=net-8.0
Content source URL
https://github.com/dotnet/dotnet-api-docs-temp/blob/live/xml/System.Net.WebSockets/WebSocket.xml
Document Version Independent Id
309b1648-c776-ccd8-f070-942978354273
Platform Id
a928965b-7541-0003-9034-7d2e0789857b
Article author
@karelz