add events to server, add ability to close client and server

This commit is contained in:
Rik Berkelder 2021-01-30 03:28:46 +01:00
parent 2261bf8b3e
commit 56338f2262
3 changed files with 39 additions and 3 deletions

View file

@ -39,4 +39,12 @@ export class OSCClient {
const encoded = toBuffer(address, [arg]);
this.sendPacket(encoded);
}
/**
* Close the connection
*/
public close(): void {
this.socket.close();
}
}