Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-osc

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-osc - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

README.md

20

examples/client.js
/* eslint-disable no-console */
'use strict';
var osc = require('../lib');
const { Client, Message } = require('../lib');
var client = new osc.Client('127.0.0.1', 3333);
client.send('/oscAddress', 1, 1, 2, 3, 5, 8, function (err) {
const client = new Client('127.0.0.1', 3333);
const message = new Message('/address');
message.append('testing');
message.append('testing');
message.append(123);
client.send(message, (err) => {
if (err) {

@@ -15,10 +21,6 @@ console.error(new Error(err));

// or
// var msg = new osc.Message('/address')
// msg.append("testing");
// msg.append("testing");
// msg.append(123);
// client.send(msg)
// client.send('/address', 'testing', 'testing', 123);
// or
// var msg = new osc.Message('/address', 1, 2, 3);
// const msg = new Message('/address', 1, 2, 3);
// client.send(msg);
/* eslint-disable no-console */
'use strict';
var osc = require('../lib');
var { Server } = require('../lib');
var oscServer = new osc.Server(3333, '0.0.0.0');
var oscServer = new Server(3333, '0.0.0.0');
oscServer.on('message', function (msg) {
console.log('Message:');
console.log(msg);
oscServer.kill();
console.log(`Message: ${msg}`);
oscServer.close();
});
{
"name": "node-osc",
"description": "pyOSC inspired library",
"version": "4.0.0",
"version": "4.0.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc