demo-chat | Playing with Node.js and Socket.io | Socket library
kandi X-RAY | demo-chat Summary
kandi X-RAY | demo-chat Summary
Playing with Node.js and Socket.io.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of demo-chat
demo-chat Key Features
demo-chat Examples and Code Snippets
Community Discussions
Trending Discussions on demo-chat
QUESTION
I have used socket.io, Node.JS, and express to create a real-time chat application that I could view by creating a local server. However, instead of using a local server, I would like to point my client to an existent heroku service. How do I go about doing this?
When I do the following,
...ANSWER
Answered 2019-May-01 at 22:08I'm not sure where you're having trouble without more code from you. I've setup a basic socket.io client as follows and can connect without issue. You can run it with the following to see just the client's messages DEBUG=spot-client node client.js
or if you wish to see all the debug info from the socket client itself as well DEBUG=* node client.js
. The latter might help you diagnose the issue further. Also be sure to install the socket.io-client
and debug
packages. Hope this helps!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install demo-chat
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page