WebsocketConnection.getCloseCode

Get the close code received from the WebSocket peer.

This only becomes valid once the WebSocket is in the %SOUP_WEBSOCKET_STATE_CLOSED state. The value will often be in the #SoupWebsocketCloseCode enumeration, but may also be an application defined close code.

class WebsocketConnection
ushort
getCloseCode
()

Return Value

Type: ushort

the close code or zero.

Meta

Since

2.50