Gio.SocketConnection.prototype.get_socket
function get_socket(): Gio.Socket {
// Gjs wrapper for g_socket_connection_get_socket()
}
Gets the underlying Gio.Socket object of the connection. This can be useful if you want to do something unusual on it not supported by the Gio.SocketConnection APIs.
Since 2.22
- Returns
a Gio.SocketAddress or null on error.