krogold
7 years agoRegular Contributor
[Ready API] How to use websocket plugin ?
Hello,
I have to open a websocket to catch notifications, to do so I installed a plugin that allows that but I have problems using it.
I have to authentify to use my requests.
When I launch a request to activate a device, I expect it to change its status (that I can check in the HTTP response) and to launch a notification through a web socket.
I tried to open the web socket and, as the plugin proposes it, I entered my credentials for proper work. I know that websockets don't handle authentication, but as it is proposed, I guess the plugin somehow deals with it.
The response code is 403 (Forbidden) instead of 101 (switching protocols).
Is there a particular way to use this plugin ?
Could someone help me ?
thank you
Alex