ServerWebsocketCallback


Description:

[ CCode ( instance_pos = 4.9 ) ]
public delegate void ServerWebsocketCallback (Server server, ServerMessage msg, string path, WebsocketConnection connection)

A callback used to handle WebSocket requests to a Server.

The callback will be invoked after sending the handshake response back to the client (and is only invoked if the handshake was successful).

path contains the path of the Request-URI, subject to the same rules as [callback@ServerCallback] `(qv)`.

Parameters:

server

the Server

msg

the ServerMessage

path

the path component of msg's Request-URI

connection

the newly created WebSocket connection

user_data

the data passed to soup_server_add_handler


Namespace: Soup
Package: libsoup-3.0