W3C home > Mailing lists > Public > public-secondscreen@w3.org > November 2015

Re: [presentation-api] Add a PresentationConnection.disconnected state for accidental disconnections

From: Mounir Lamouri via GitHub <sysbot+gh@w3.org>
Date: Fri, 06 Nov 2015 11:21:28 +0000
To: public-secondscreen@w3.org
Message-ID: <issue_comment.created-154384682-1446808887-sysbot+gh@w3.org>
I'm slightly confused by this, how is the UC not fulfilled with:
```js
var connection = getTheConnection();
connection.onstatechange = function() {
  if (connection.state != 'connected') {
    handleDisconnect();
  }
};
```

-- 
GitHub Notif of comment by mounirlamouri
See 
https://github.com/w3c/presentation-api/issues/217#issuecomment-154384682
Received on Friday, 6 November 2015 11:21:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:18:59 UTC