get_close_code


Description:

public ushort get_close_code ()

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 [enum@WebsocketCloseCode] enumeration, but may also be an application defined close code.

Parameters:

this

the WebSocket

Returns:

the close code or zero.




2022 vala-language.org