Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transport=polling not found #82

Closed
connor11528 opened this issue Sep 22, 2014 · 5 comments
Closed

transport=polling not found #82

connor11528 opened this issue Sep 22, 2014 · 5 comments

Comments

@connor11528
Copy link

I am trying to set up an express 4 server using socket.io and an angular frontend. I keep getting errors in the console and the browser about transport=polling not found.

In the terminal: GET /socket.io/?EIO=3&transport=polling&t=1411419424649-79 404 0.486 ms - 74

In the browser: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/socket.io/?EIO=3&transport=polling&t=1411419457464-84

What creates these errors?

@dev0x10
Copy link

dev0x10 commented Sep 23, 2014

did you enable transport polling on your server?
may help your problem: http://stackoverflow.com/questions/23962047/socket-io-v1-0-x-unknown-transport-polling

@btford
Copy link
Owner

btford commented Sep 24, 2014

this sounds like an issue with how you're using Socket.IO.

@dexity
Copy link

dexity commented Sep 28, 2014

I had the same issue and fixed it by connecting to socker io server:

angular.module('myApp', [
    'btford.socket-io',
])
.factory('socket', function (socketFactory) {
    return socketFactory({
        ioSocket: io('http://socket_io_host:port')
    });
})

@Arduinology
Copy link

Thanks @dexity this solved my issue.

@ateixeiramunoz
Copy link

Nice, it also solved my Issue With Express, angularjs, Centos server, and virtualized apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants