[ 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)`.
server |
the Server |
msg |
the ServerMessage |
path |
the path component of |
connection |
the newly created WebSocket connection |
user_data |
the data passed to |