Expose the resource name the client used to the websocket server

This information is exposed to the websocket server through the
client_connected-signal.

example.com/chat?id=10 gives the resource name "/chat?id=10"
This commit is contained in:
Meriipu 2020-06-17 08:14:58 +02:00
parent de83ee57e5
commit 1475f617a3
6 changed files with 26 additions and 21 deletions

View file

@ -116,8 +116,11 @@
</argument>
<argument index="1" name="protocol" type="String">
</argument>
<argument index="2" name="resource_name" type="String">
</argument>
<description>
Emitted when a new client connects. "protocol" will be the sub-protocol agreed with the client.
Emitted when a new client connects. "protocol" will be the sub-protocol agreed with the client, and "resource_name" will be the resource name of the URI the peer used.
"resource_name" is a path (at the very least a single forward slash) and potentially a query string.
</description>
</signal>
<signal name="client_disconnected">