- From: François Daoust via GitHub <sysbot+gh@w3.org>
- Date: Fri, 18 Sep 2015 14:56:59 +0000
- To: public-secondscreen@w3.org
tidoust has just created a new issue for https://github.com/w3c/presentation-api: == Message sending in Example 5 happens too early == The code in example 5 apparently assumes that it may issue a `send` command right away: http://w3c.github.io/presentation-api/#monitor-session-s-state-and-exchange-data-example However, I don't see what guarantees that this won't thrown an error in the spec. The algorithm to etablish a presentation connection runs in the background in particular, so I would expect the returned PresentationSession to be in "disconnected" state to start with: http://w3c.github.io/presentation-api/#dfn-establish-a-presentation-connection And the algorithm to send a message throws an exception if the state is not "connected": http://w3c.github.io/presentation-api/#dfn-send-a-message-through-a-presentationsession-s Happy to prepare a PR if I'm right. See https://github.com/w3c/presentation-api/issues/198
Received on Friday, 18 September 2015 14:57:00 UTC