Robot Web Services Websocket examples

I am currently using Robot Web Services 1.0 with HTML/JS to get subscription on errors from the robot. I always get the error that the HTTP authentication failed. The documentation said to add the HTTP-session and ABBCX cookies into the request headers.
Can I ask for an example on this as the MDN documentation on WebSocket said it is not possible to add request header?
Can I ask for an example on this as the MDN documentation on WebSocket said it is not possible to add request header?
Tagged:
Comments
I m using the python example provided and i getting error 404.
Can anyone help here?
Thanks in advance
I am in the same condition, i do not if something change in the Web Services.
Currently i m getting error 404.
Can some one help?
Thanks in advance
The first time the browser automatically will ask a login, enter the User and passwor (es. Defaul User, robotics) and after that you can create a subsription and create the websocket without any cookies or sessions.
Let me know if you have more questions, U.
Is there a better way to do this?
well, I'm actually work on it but is not easy to develop it in JS both because it doesn't native support the digest authentications and due to CORS restrictions of the web server and browser.
The official documentation suggest to use HTML and JS inside the controller.
Otherwise is better to use Python or C#.
I'll let you know if I'll discover something!
Ciao, U.