Websocket broken?

This Forum is about the Opentherm gateway (OTG) from Schelte

Moderator: hvxl

Websocket broken?

Postby Ghostbird » Wed Jan 20, 2016 1:18 pm

I was wondering whether the websocket functionality was broken, because it hasn't worked for me for over a year.
Since I heard little complaints about it on the forum I guess either nobody uses it (unlikely) or it's just broken for me.

Are there any special prerequisites to using the websocket? I tested in Safari, since it seems to be made for that browser, but it didn't work.
I did test in Safari on iPad, instead of iPhone though.

Or does the web-socket only work on an unsecured TCP connection?

In that case it is of little value to me, since it would essentially bypass all security measures.
Ghostbird
Starting Member
Starting Member
 
Posts: 14
Joined: March 2015

Re: Websocket broken?

Postby janh » Fri Jan 22, 2016 2:17 pm

I'm struggling with the same problem. WebSockets are working fine on my Android devices or in IE, it fails however when I visit the thermostat page on my iPhone. It doesn't matter wether I'm using a secure connection over https or a standard connection over http. OTMonitor runs behind an nginx server and I would like to see the WebSockets working on my iOS devices. :D
janh
Starting Member
Starting Member
 
Posts: 3
Joined: January 2016

Re: Websocket broken?

Postby adijk » Fri Jan 22, 2016 4:52 pm

At least in Apache you have to use a 'special' proxypass for websockets and in nginx it seams also:

https://httpd.apache.org/docs/2.4/mod/m ... unnel.html
https://www.nginx.com/blog/websocket-nginx/

So maybe you need to adjust this in your reverse proxy config?
adijk
Starting Member
Starting Member
 
Posts: 18
Joined: December 2013

Re: Websocket broken?

Postby janh » Sat Jan 23, 2016 5:58 pm

I already adjusted these settings to make the WebSockets working on non-iOS devices. The WebSockets are also failing when I visit the thermostat page via my internal WiFi bypassing the reverse proxy.
janh
Starting Member
Starting Member
 
Posts: 3
Joined: January 2016

Re: Websocket broken?

Postby hvxl » Mon Jan 25, 2016 11:52 pm

The otmonitor side of things doesn't seem to be the problem as it works fine with firefox.

I originally tested the iphone page with IOS 5. At that time it worked. Since then bugs appear to have crept into the webkit framework. I noticed myself that client certificates are no longer being sent for urls added to the home screen. And since Apple only allows browsers based on webkit on their devices, there's no way around these bugs. Another reason not to use Apple equipment.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1180
Joined: June 2010

Re: Websocket broken?

Postby janh » Tue Jan 26, 2016 9:37 am

When I visit the page https://websocketstest.com on my iPhone (iOS 7) it says that WebSockets seem to work on my device. Is it possible to get the setpoint manipulation working without the need of WebSockets by editng the iphone.html page?
janh
Starting Member
Starting Member
 
Posts: 3
Joined: January 2016

Re: Websocket broken?

Postby adijk » Thu Mar 10, 2016 9:42 am

janh wrote:When I visit the page https://websocketstest.com on my iPhone (iOS 7) it says that WebSockets seem to work on my device. Is it possible to get the setpoint manipulation working without the need of WebSockets by editng the iphone.html page?


Maybe you can try this solution: http://stackoverflow.com/a/27534443
adijk
Starting Member
Starting Member
 
Posts: 18
Joined: December 2013


Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: No registered users and 1 guest