{"action":"opened","issue":{"url":"https://api.github.com/repos/peers/peerjs/issues/273","labels_url":"https://api.github.com/repos/peers/peerjs/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/peers/peerjs/issues/273/comments","events_url":"https://api.github.com/repos/peers/peerjs/issues/273/events","html_url":"https://github.com/peers/peerjs/issues/273","id":59025679,"number":273,"title":"XHR signalling fails on newer browsers","user":{"login":"alanmshelly","id":2532867,"avatar_url":"https://avatars.githubusercontent.com/u/2532867?v=3","gravatar_id":"","url":"https://api.github.com/users/alanmshelly","html_url":"https://github.com/alanmshelly","followers_url":"https://api.github.com/users/alanmshelly/followers","following_url":"https://api.github.com/users/alanmshelly/following{/other_user}","gists_url":"https://api.github.com/users/alanmshelly/gists{/gist_id}","starred_url":"https://api.github.com/users/alanmshelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanmshelly/subscriptions","organizations_url":"https://api.github.com/users/alanmshelly/orgs","repos_url":"https://api.github.com/users/alanmshelly/repos","events_url":"https://api.github.com/users/alanmshelly/events{/privacy}","received_events_url":"https://api.github.com/users/alanmshelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-26T06:17:34Z","updated_at":"2015-02-26T06:17:34Z","closed_at":null,"body":"We noticed this bug when working in an environment that doesn't allow websockets. An update to seems to have killed the peerjs implementation of xhr signalling. I tested xhr signalling about a year ago so I know it used to work. Also confirmed it was working in Firefox ESR 31.5.0.\r\n\r\nIf anyone has any ideas of the cause, please let me know!\r\n\r\nSteps to reproduce:\r\n\r\n1. comment out the line ``this._startWebSocket();`` in ``Socket.prototype.start()``\r\n2. open examples/videochat in 2 tabs\r\n3. call one tab from the other\r\n\r\nResult:\r\n\r\n- signalling occurs (candidates/offers/answers being sent/received) but peerConnection isn't established\r\n- the error ``Failed to set local offer sdp: Called in wrong state: STATE_RECEIVEDINITIATE`` is occasionally thrown\r\n- sometimes the PC is established and the video is displayed as normal (timing problem)\r\n\r\nTested on:\r\n\r\n- Chrome 40.0.2214.115\r\n- Firefox 35.0.1, 36.0\r\n- Firefox ESR 31.5.0 (Bug not present)"}}