ServerWebsocketCallback


Description:

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

A callback used to handle WebSocket requests to a [class@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

connection

the newly created WebSocket connection

path

the path component of msg's Request-URI

msg

the SoupServerMessage

user_data

the data passed to soup_server_add_handler


Namespace: Soup
Package: libsoup-2.4