Sets our main struct and passes it to the parent class.
Creates a #SoupWebsocketConnection on @stream. This should be called after completing the handshake to begin using the WebSocket protocol.
Creates a #SoupWebsocketConnection on @stream with the given active @extensions. This should be called after completing the handshake to begin using the WebSocket protocol.
Emitted when the connection has completely closed, either due to an orderly close from the peer, one initiated via soup_websocket_connection_close() or a fatal error condition that caused a close.
This signal will be emitted during an orderly close.
Emitted when an error occurred on the WebSocket. This may be fired multiple times. Fatal errors will be followed by the #SoupWebsocketConnection::closed signal being emitted.
Emitted when we receive a message from the peer.
Emitted when we receive a Pong frame (solicited or unsolicited) from the peer.
Close the connection in an orderly fashion.
Get the close code received from the WebSocket peer.
Get the close data received from the WebSocket peer.
Get the connection type (client/server) of the connection.
Get the extensions chosen via negotiation with the peer.
Get the I/O stream the WebSocket is communicating over.
Gets the keepalive interval in seconds or 0 if disabled.
Gets the maximum payload size allowed for incoming packets.
Get the origin of the WebSocket.
Get the protocol chosen via negotiation with the peer.
Get the current state of the WebSocket.
the main Gtk struct as a void*
Get the URI of the WebSocket.
Get the main Gtk struct
Send a binary message to the peer. If @length is 0, @data may be %NULL.
Send a message of the given @type to the peer. Note that this method, allows to send text messages containing %NULL characters.
Send a %NULL-terminated text (UTF-8) message to the peer. If you need to send text messages containing %NULL characters use soup_websocket_connection_send_message() instead.
Sets the interval in seconds on when to send a ping message which will serve as a keepalive message. If set to 0 the keepalive message is disabled.
Sets the maximum payload size allowed for incoming packets. It does not limit the outgoing packet size.
the main Gtk struct
A class representing a WebSocket connection.