
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.
node-moscow is a node package providing simple, reliable and well tested OSC servers and clients for node.js. It implements servers and clients for OSC communication on top of TCP and UDP.
To install it run npm install moscow
server.js
// Creates a UDP server, listening on port 9000
var server = new require('moscow').createServer(9000, 'udp')
// Bind to the `message` event to handle incoming messages
server.on('message', function(address, args) {
console.log(address, args)
})
// Start the server
server.start(function() {
console.log('server started')
})
client.js
// Creates a UDP client sending to host 'localhost' on port 9000
var client = new require('moscow').createClient('localhost', 9000, 'udp')
// Call the `send(address, args)` method to send a message
client.send('/bla/blo', [11, 22, 'hello'])
Create and return a new OSC client.
var udpClient = moscow.createClient('192.168.2.100', 9000, 'udp')
, tcpClient = moscow.createClient('192.168.2.110', 9001, 'tcp')
Create and return a new OSC server.
var udpServer = moscow.createServer(9000, 'udp')
, tcpServer = moscow.createServer(9001, 'tcp')
Emitted when an OSC message was received by the server. Handlers are passed two arguments address, the OSC address, and args the list of arguments sent along the message. Example :
server.on('message', function(address, args) {
if (address === '/color')
console.log('R:' + args[0] + ',G:' + args[1] + ',B:' + args[2])
})
Emitted when an unexpected error happened.
Starts the server and calls done(err).
Stops the server and calls done(err).
Emitted when an unexpected error happened.
Sends an OSC message to address with arguments args. Example :
client.send('/hello', ['max', new Buffer('sam'), 'john'])
UDP is the commonly used with OSC because it is faster than TCP. On the other hand, with UDP you might loose some messages, while TCP ensures all packets are properly received. So this is a trade-off to make, depending on your requirements.
FAQs
Simple, reliable and well tested OSC servers and clients for node.js
We found that moscow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.