Questions tagged [network-programming]

The art of programming that involves designing and administering networks while integrating network capabilities into software applications.

Challenges with Selenium testing and network timeouts

My current automation tasks using selenium are encountering issues with flakiness due to network problems like slowness. This has led to numerous failed test cases, and re-running them is proving to be quite time-consuming. As a result, the efficiency of a ...

Which option is better for my needs: AJAX or WebSockets?

The ongoing debate between HTTP and WebSockets has resurfaced yet again, leaving me in a state of confusion even after sifting through numerous comparison blog posts, discussions on Stack Overflow, and other resources. As I evaluate the needs of our applic ...

Developing a Node.js system for mapping ids to sockets and back again

Managing multiple socket connections in my application is proving to be a challenge. The app functions as an HTTP server that receives posts and forwards them to a socket. When clients establish a socket connection, they send a connect message with an ID: ...

Local Node.js RestAPI functioning smoothly but encountering issues when deployed on a server

After developing a Node.js RestAPI to interact with a MongoDB database on my localhost, I now face the task of deploying it to a server for testing by users. The Ubuntu 16.04 server has been set up successfully with the necessary software (Node.js and Mon ...

Clock Synchronization System

Looking to retrieve the time using the Time protocol specified in RFC 868 while working with python. Below is the code snippet I am using for this purpose: import socket server = "time.nist.gov" port = 37 receive_buffer_size = 4096 mysocket = socket.sock ...

Incorporating source files from an Express server into an HTML document

Recently, I delved into the world of Node.js with Express and Socket.io to create a web application, specifically a game. In my project, I have a designated /public folder where I aim to serve the necessary files for the client-side operations. Typically, ...

What might be causing the JSON document to remain partially unused?

I'm experimenting with fetching JSON data from an external source for practice. I've set up all the code, but I keep encountering an error stating that the document is not fully consumed. Despite watching tutorials and reading guides, I can' ...