Skip to content

Comments

[openhabcloud] Handle WebSocket connections to server#20238

Open
digitaldan wants to merge 3 commits intoopenhab:mainfrom
digitaldan:feature/proxy_websocket
Open

[openhabcloud] Handle WebSocket connections to server#20238
digitaldan wants to merge 3 commits intoopenhab:mainfrom
digitaldan:feature/proxy_websocket

Conversation

@digitaldan
Copy link
Contributor

This is a rebase and then some changes to #16403. I have already deployed the websocket changes to our myopenhab service, although its turned off in the load balancer at the moment until we can get this ready/merged.

I would also recommend to backport to a patch release, it won't break any existing functionality, but the sooner we can can user's upgraded and this in the wild, the better.

GiviMAD and others added 2 commits February 14, 2026 16:49
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds WebSocket connection proxying support to the openHAB Cloud connector, enabling WebSocket protocol communication between the Cloud Connector and openHAB server. The implementation introduces a custom ProtocolHandler to intercept upgraded WebSocket responses, access the underlying EndPoint, and upgrade its Connection to a custom implementation that proxies plain socket data.

Changes:

  • Added WebSocket proxy upgrade handler to intercept and handle HTTP upgrade responses with status 101
  • Implemented OpenHABWebSocketConnection class to proxy WebSocket data between cloud connector and openHAB server
  • Added WebSocket data event handling to read/write data through the upgraded connection

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wborn wborn changed the title Handle WebSocket connections to server [openhabcloud] Handle WebSocket connections to server Feb 17, 2026
@digitaldan
Copy link
Contributor Author

I'll review the pr feedback today just FYI.

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan
Copy link
Contributor Author

I think this one is good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants