6.9 SoupServerWebsocketCallback

Callback: SoupServerWebsocketCallback

A procedure given for it is called as (procedure server msg path 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 ServerCallback (qv).

server

Passed: a <SoupServer>.

the <SoupServer>

msg

Passed: a <SoupServerMessage>.

the <SoupServerMessage>

path

Passed: a string.

the path component of msg’s Request-URI

connection

Passed: a <SoupWebsocketConnection>.

the newly created WebSocket connection

user-data

Not passed: it is the user data that guile-gi supplied.

the data passed to soup-server-add-handler