This commit is contained in:
Rik Berkelder 2021-01-23 16:28:49 +01:00
parent 4c5d981e7f
commit 03325a1c63
8 changed files with 332 additions and 13 deletions

View file

@ -3,7 +3,7 @@ An easy to use, Typescript-Native OSC client.
## Usage example
```javascript
import {OSCClient} from 'ts-osc';
import {OSCClient, OSCType} from 'ts-osc';
const client = new OSCClient({
outHost: "localhost",
@ -11,7 +11,7 @@ const client = new OSCClient({
inPort: 8000
})
client.send('/hello', "string", "hello");
client.send('/hello', OSCType.String, "hello");
client.on('message', (msg)=>{
console.log(msg);