{"action":"created","issue":{"url":"https://api.github.com/repos/urish/firebase-server/issues/7","labels_url":"https://api.github.com/repos/urish/firebase-server/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/urish/firebase-server/issues/7/comments","events_url":"https://api.github.com/repos/urish/firebase-server/issues/7/events","html_url":"https://github.com/urish/firebase-server/issues/7","id":100152865,"number":7,"title":"WebSocket connection to 'ws://test.firebaseio.com:5000/.ws?v=5' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED","user":{"login":"rehmsen","id":29040,"avatar_url":"https://avatars.githubusercontent.com/u/29040?v=3","gravatar_id":"","url":"https://api.github.com/users/rehmsen","html_url":"https://github.com/rehmsen","followers_url":"https://api.github.com/users/rehmsen/followers","following_url":"https://api.github.com/users/rehmsen/following{/other_user}","gists_url":"https://api.github.com/users/rehmsen/gists{/gist_id}","starred_url":"https://api.github.com/users/rehmsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rehmsen/subscriptions","organizations_url":"https://api.github.com/users/rehmsen/orgs","repos_url":"https://api.github.com/users/rehmsen/repos","events_url":"https://api.github.com/users/rehmsen/events{/privacy}","received_events_url":"https://api.github.com/users/rehmsen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-08-10T19:49:02Z","updated_at":"2016-01-28T16:22:47Z","closed_at":"2015-08-10T22:36:19Z","body":"This may just be me holding it wrong:\r\nConnecting to the local firebase_server works fine from the nodejs client, but fails with the error above in the browser (Chromium Version 43.0.2357.130 Ubuntu 14.04 (64-bit)).\r\n\r\nFirebase browser client version: 2.2.9\r\nFirebase node client version: 2.2.7\r\nFirebase-server version: 0.3.0\r\n\r\nFirebase server:\r\n```javascript\r\nvar FirebaseServer = require('firebase-server');\r\nvar fs = require('fs');\r\nvar data = JSON.parse(fs.readFileSync('firebase_data.json', 'utf-8'));\r\nFirebaseServer.enableLogging(true);\r\nnew FirebaseServer(5000, 'test.firebaseio.com', data);\r\n```\r\n\r\n/etc/hosts:\r\n```\r\n127.0.0.1       test.firebaseio.com\r\n```\r\n\r\nFirebase browser client:\r\n```javascript\r\nnew Firebase('ws://test.firebaseio.com:5000')\r\n```\r\n\r\nError, every second in the Chrome console:\r\n> WebSocket connection to 'ws://test.firebaseio.com:5000/.ws?v=5' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED\r\nFirebase server debug output\r\n> [firebase-server] Listening for connections on port 5000\r\n\r\nAs I mentioned, the connection from node works fine. Debug output:\r\n> [firebase-server] New connection from 127.0.0.1:54567\r\n> ...\r\n\r\nAny idea?\r\n"},"comment":{"url":"https://api.github.com/repos/urish/firebase-server/issues/comments/176260774","html_url":"https://github.com/urish/firebase-server/issues/7#issuecomment-176260774","issue_url":"https://api.github.com/repos/urish/firebase-server/issues/7","id":176260774,"user":{"login":"prust","id":23037,"avatar_url":"https://avatars.githubusercontent.com/u/23037?v=3","gravatar_id":"","url":"https://api.github.com/users/prust","html_url":"https://github.com/prust","followers_url":"https://api.github.com/users/prust/followers","following_url":"https://api.github.com/users/prust/following{/other_user}","gists_url":"https://api.github.com/users/prust/gists{/gist_id}","starred_url":"https://api.github.com/users/prust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prust/subscriptions","organizations_url":"https://api.github.com/users/prust/orgs","repos_url":"https://api.github.com/users/prust/repos","events_url":"https://api.github.com/users/prust/events{/privacy}","received_events_url":"https://api.github.com/users/prust/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T16:22:47Z","updated_at":"2016-01-28T16:22:47Z","body":"@urish: We didn't use Chrome; we were using the node firebase client to connect to the firebase server to test a node app (both running in the same process, using mocha as the test runner)."}}