ts-osc
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

ts-osc

An easy to use, Typescript-Native OSC client.

API Docs here

Usage example

import {OSCClient, OSCType, OSCServer} from 'ts-osc';

const client = new OSCClient("localhost", 8000);

client.send('/hello', OSCType.String, "hello");

const server = new OSCServer("0.0.0.0", 8000);

server.on('message', (msg)=>{
    console.log(msg);
})

NPM Scripts

Tasks Description
npm run build Build module & docs
npm run compile Compile TS
npm run watch Compile and watch
npm run clean Clean build folder
npm run docs generate docs

Package Sidebar

Install

npm i ts-osc

Weekly Downloads

48

Version

0.3.2

License

MIT

Unpacked Size

21.7 kB

Total Files

16

Last publish

Collaborators

  • riksolo