This section explains how you can configure Websocket subprotocols both for local development and using Cosmo Studio.
initial_payload
field.
In addition to allowing clients to authenticate using this method, you can also enable the export_token
option. This feature takes the token from the initial payload and exports it into the Header of the Upgrade request. This allows the Router to treat every Subscription from this client as if the client sent the token as a header. Consequently, if header forwarding rules are enabled, the exported token will be forwarded accordingly.