docs
This commit is contained in:
parent
4c5d981e7f
commit
03325a1c63
8 changed files with 332 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue