add events to server, add ability to close client and server
This commit is contained in:
parent
2261bf8b3e
commit
56338f2262
3 changed files with 39 additions and 3 deletions
|
|
@ -39,4 +39,12 @@ export class OSCClient {
|
|||
const encoded = toBuffer(address, [arg]);
|
||||
this.sendPacket(encoded);
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the connection
|
||||
*/
|
||||
|
||||
public close(): void {
|
||||
this.socket.close();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue