NodeJS net.Socket client – Unexpected Socket Connection Closures Without Response
Context I’ve designed a small program in my company that makes a socket connection with a server socket on a PLC. How the program works : a new socket connection is opened with the server every 10 seconds a socket connection is made between my client program and the server socket on a PLC a […]
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
Web Sockets : ReferenceError: io is not defined, When I am hosting the website
I am learning about web sockets and made an simple chat app (of course), but when I host the website on NETLIFY I got this error
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.