19 lines
336 B
Markdown
19 lines
336 B
Markdown
# ts-osc
|
|
An easy to use, Typescript-Native OSC client.
|
|
|
|
## Usage example
|
|
```javascript
|
|
import {OSCClient, OSCType} from 'ts-osc';
|
|
|
|
const client = new OSCClient({
|
|
outHost: "localhost",
|
|
outPort: 8000,
|
|
inPort: 8000
|
|
})
|
|
|
|
client.send('/hello', OSCType.String, "hello");
|
|
|
|
client.on('message', (msg)=>{
|
|
console.log(msg);
|
|
})
|
|
```
|