FAQ Database Discussion Community

RTCDataChannel with Google Channel API

I'm trying to follow this example by Dan Ristic for RTCDataChannel browser p2p communication with Google's Channel API for signaling. It seems to be failing silently - I can't get the RTCDataChannel.onopen, RTCPeerConnection.onicecandidate, or RTCPeerConnection.ondatachannel events to fire. Client JS/HTML: <html> <head> <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> <script type="text/javascript" src="/_ah/channel/jsapi"></script> <script> $(document).ready(function(){ var...

Google AppEngine channel is opened, client is receiving responses, but socket.onmessage is not being called

I have a webpage that I want to use the google app engine channel API with. I have a token being generated with an external library, which is fed into this very, very simple javascript. <html lang="en"> <body> <script src="jquery-1.6.3.min.js" ></script> <script type="text/javascript" src="/_ah/channel/jsapi"></script> <script type="text/javascript"> var token, channel, socket;...