1

Our webapp uses websockets. When the page loads, we check for websocket support using:

if ('WebSocket' in window)

When we run the webapp on the Opera TV 3.4 emulator, we detect that websockets are available. When we run the webapp on a Sony Bravia KDL-50W829B, the websocket test fails.

Comparing the UserAgents, the Bravia KDL-50W829B version exceeds that of the emulator so we're expecting websockets to be available:

  • 3.4 emulator: Opera/9.80 (Linux i686; Opera TV Store/5449) Presto/2.12.362 Version/12.10
  • Bravia KDL-50W829B: Opera/9.80 (Linux armv7l; InettvBrowser/2.2 (00014A;SonyDTV140;0001;0001) KDL50W829B; CC/GBR) Presto/2.12.407 Version/12.50

According to these links, websockets should be available and enabled:

We've also found other posts where it's mentioned that websockets don't work on the Bravia browser (search for lavag.org viewing panel via smart tv)

Any ideas ?

Thanks.

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
chatfipa
  • 11
  • 1
  • We've updated to support SockJS (uses other mechanisms when websockets aren't available) and our app works on the Sony Bravia now. Still interested in finding out why websockets aren't available though – chatfipa Feb 25 '15 at 12:04

1 Answers1

0

outside the normal browser ... say from inside a web worker this works

if (! ("WebSocket" in self)) {

    throw new Error("ERROR - websocket not available");
}
Scott Stensland
  • 26,870
  • 12
  • 93
  • 104
  • The websocket support detection we're using is working. The question is why websockets are available in the emulator but not when we use the real device – chatfipa Feb 25 '15 at 12:02