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