Relative Content

Tag Archive for node.jssockets

Why socket io is not working on my client side?

I intend to create rooms on a server that lets groups of two users communicate or send messages to each other. I have used the following code to start the server and point the default file to the appropriate HTML file. On the event of opening the port the server on a browser, I do not get the message connected on the console despite the code existing in my file. Here is how server.js looks like

UDP/TCP application in node js gets stuck until I press Ctrl+C

I have a node js UDP and TCP servers socket application which receives data over these two protocols. I’m using the ‘dgram’ library for UDP and ‘net’ library for TCP.
The problem I have is that, once in a while, the application gets stuck and the console does not show any activity… If a enter Ctrl+C, is like the application ‘unblocks’ and it shows all the console information that seemed to be in a queue to be process. I mean, it’s like at some point, the application blocks and all transactions get queued but not processed until I do a Ctrl+C.
I would appreciate any help on how I can debug this issue.

node.js socket.io connecting to a non http device

I am working on a system which uses C# applications and a socket to connect to remote devices, the connection is established by connecting to the IP address and a port number. A very short plain text message is sent and requests are issued again using a short text message.