WebsocketConnection.getCloseData

Get the close data received from the WebSocket peer.

This only becomes valid once the WebSocket is in the %SOUP_WEBSOCKET_STATE_CLOSED state. The data may be freed once the main loop is run, so copy it if you need to keep it around.

class WebsocketConnection
string
getCloseData
()

Return Value

Type: string

the close data or %NULL

Meta

Since

2.50