Comparing version 4.0.0 to 4.0.1
/* 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": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
48092
749
40