ServerWebsocketCallback


Description:

public delegate void ServerWebsocketCallback (Server server, WebsocketConnection connection, string path, ClientContext client)

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 ServerCallback (qv).

Parameters:

server

the Server

connection

the newly created WebSocket connection

path

the path component of msg's Request-URI

client

additional contextual information about the client

user_data

the data passed to soup_server_add_handler


Namespace: Soup
Package: libsoup-2.4