
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
rt-tcp-utils
Advanced tools
JavaScript utilities for communicating with a C++ real-time application over TCP
Utilities for communicating between a JavaScript application and a C++ real-time application created with DevOps Model RealTime or DevOps Code RealTime.
Feel free to extend tcp-server.js to cover your needs. Pull requests are welcome!
Assuming that the real-time application you want to communicate with runs on localhost on port 9911 you define a TCP server like this:
const tcpServer = require('./tcp-server')('localhost', 9911);
To also be able to receive events sent by the application register a callback function and start listen to events on a port (2234 is the default but can of course be replaced):
tcpServer.setEventReceivedCallback(msgReceived);
tcpServer.startListenForEvents(2234) // Receive TCP requests from RT app on port 2234
.then((data) => {
console.log("Ready to receive TCP requests");
});
The callback function msgReceived will be called whenever the real-time application sends out an event. It has an object as argument that contains properties according to the TCPServer documentation. For example:
if (msg.port == "trafficLight") {
if (msg.event == "red") {
// Event "red" received on the "trafficLight" port
// ...
}
}
To send an event call a function on the tcpServer object. For example:
tcpServer.sendEvent('pedestrian', 'trafficLight'); // Send event "pedestrian" on the "trafficLight" port
This Code RealTime application uses rt-tcp-utils.
FAQs
JavaScript utilities for communicating with a C++ real-time application over TCP
We found that rt-tcp-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.