Websocket API - unable to connect

Hello all,

I found that OH 3.4 has websocket api to subscribe events. I try to connect it but failed. Anyone can help to see what happen?

What I had done:

  • create api token
  • link to connect “ws://”
  • socket on open send “{api_token}”

Output from the OH log ==> /var/log/openhab/openhab.log <==

2023-01-10 14:39:24.220 [WARN ] [bSocketServlet$EventWebSocketCreator] - Unauthenticated request to create a websocket from


The documentation is not very good, after reading it again. You have to send the access token as query parameter: ws://


Thanks a lot! :smiling_face_with_three_hearts:
It works.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.