You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make sure you have socket.io client library: bower install socket.io-client --save
This didn't fix my problem with this same error.
including in index.html:
script src="lib/angular-socket-io/socket.js"
in app.js
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'starter.directives', 'btford.socket-io'])
in services.js
.factory('seatStatusSocket',function(socketFactory){
var myIoSocket = io.connect(porturl); // io is not defined here, suddenly.
It was working before, using a remote copy of the lib. When this error started, I changed index.html to link a local copy, as this remote version also received a Bad Gateway error (now fine, but still socket io is not defined as above).
There was a suggestion here: #77
This didn't fix my problem with this same error.
script src="lib/angular-socket-io/socket.js"
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'starter.directives', 'btford.socket-io'])
.factory('seatStatusSocket',function(socketFactory){
var myIoSocket = io.connect(porturl); // io is not defined here, suddenly.
It was working before, using a remote copy of the lib. When this error started, I changed index.html to link a local copy, as this remote version also received a Bad Gateway error (now fine, but still socket io is not defined as above).
removed: script src="http://chat.socket.io/socket.io/socket.io.js"
versions
[email protected] node_modules/socket.io
node --version
v0.12.7
The text was updated successfully, but these errors were encountered: