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
I am trying to take value from the console and print it on the browser and vice versa. In this app the chat is between the client and the server.
When i run the index.js file i get this on the terminal
listening on *:3000
When i hit the localhost:3000 on the browser and send the message from browser to client, the messaged is received successfully but when I try to send message from server(terminal) to the client(browser) i get the following error..
node.js:415
callback();
^
TypeError: undefined is not a function
at process._tickCallback (node.js:415:13)
How can i solve this? I want to get the value from the console(server) and send it to the browser(client).
The text was updated successfully, but these errors were encountered:
If your problem is that want to use arrow functions using =>, you need to upgrade to Node v4 or Node v6 (you can download them from https://nodejs.org/). It’s probably a good idea to do that anyway.
Also, for general questions about using or installing Node.js, nodejs/help may be a better place than this.
Node Version: 0.10.25
Platform: Ubuntu 14
I am new to Node.js and i am developing a simple chat app using Socket.IO. I made an index.js file and an index.html file.
My index.js files looks like this
here is my index.html file
I am trying to take value from the console and print it on the browser and vice versa. In this app the chat is between the client and the server.
When i run the index.js file i get this on the terminal
listening on *:3000
When i hit the localhost:3000 on the browser and send the message from browser to client, the messaged is received successfully but when I try to send message from server(terminal) to the client(browser) i get the following error..
How can i solve this? I want to get the value from the console(server) and send it to the browser(client).
The text was updated successfully, but these errors were encountered: