0

I'm noob on nodejs and i'm trying some tutorials of nodejs. I'm trying this tutorial: http://cestfait.ch/content/chat-webapp-nodejs it works wonderful on my localhost but not when I upload to appfog like you can see here: http://nodebruno.hp.af.cm/

For example, the prompt don't show up. I changed the code to avoid the prompt and insert the nickname on a input text and this work on localhost but doesn't work on appfog too.

I already tried on nodejitsu servers and I have the same problem

Can you help me ?

1 Answer 1

1

Your app has an error, it's trying to connect to a localhost socket.io server.

You need to change this line:

var socket = io.connect('http://localhost:8000'); 

to

var socket = io.connect();

And it would work preferably on Nodejitsu

Sign up to request clarification or add additional context in comments.

1 Comment

Now the prompt show up but nothing work. Don't appear "nickname" connected. And the server take some seconds to show the prompt box

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.