lightning-trader icon indicating copy to clipboard operation
lightning-trader copied to clipboard

sample code won't run due to incorrect inclusion of socket.io

Open ErnstEeldert opened this issue 10 years ago • 1 comments

I am trying to get this up and running, but after building (with mock feed enabled), the page fails to render with the following message on the js console:

"[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (socket.io.js, line 0)"

This also seems to happen on your version deployed to heroku. I am on Safari 8.0.8 on Yosemite.

Thanks!

ErnstEeldert avatar Sep 14 '15 11:09 ErnstEeldert

I had sufferd same problem. but I solved it!

you have to change code in 'Server.js'

app.listen(app.get('port'), function () { -----> http.listen(app.get('port'), function () {

This is detail solve http://stackoverflow.com/questions/24172909/socket-io-connection-reverts-to-polling-never-fires-the-connection-handler

onefunman avatar Mar 02 '16 17:03 onefunman