[ 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 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).
server |
the Server |
connection |
the newly created WebSocket connection |
path |
the path component of |
client |
additional contextual information about the client |
user_data |
the data passed to |