Open KamranBiglari opened 1 year ago
Is there any possibility of using the message body for authentication instead of the header? I want my client to connect to the WebSocket and send the login command and if the login was successful send the command for subscribing to the channel.
Login command:
{"command":"login","username":"USERNAME","password":"PASSWORD"}
Subscribe command:
{"command":"subscribe","channel":"CHANNEL_NAME"}
You can try to use alternative events stream code (JavaScript) ... for eg I do auth over jwt token in url
Is there any possibility of using the message body for authentication instead of the header? I want my client to connect to the WebSocket and send the login command and if the login was successful send the command for subscribing to the channel.
Login command:
Subscribe command: