diff --git a/package.json b/package.json index 1a1b7f5..9855161 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-osc", - "version": "0.2.0", + "version": "0.2.1", "description": "Fully TypeScript-native OSC Client based on osc-min", "main": "./lib/index.js", "types": "./lib/index.d.ts", diff --git a/src/oscClient.ts b/src/oscClient.ts index 33c8154..d51c7ac 100644 --- a/src/oscClient.ts +++ b/src/oscClient.ts @@ -9,12 +9,11 @@ import { EventEmitter } from 'events'; const osc = new OSCClient("192.168.0.44", 8000) ``` */ -export class OSCClient extends EventEmitter { +export class OSCClient { private socket: dgram.Socket; private host: string; private port: number; constructor(host: string, port: number) { - super(); this.host = host; this.port = port; this.socket = dgram.createSocket({ type: 'udp4', reuseAddr: true }); @@ -25,11 +24,11 @@ export class OSCClient extends EventEmitter { } /** - * Send an OSC message - ``` - osc.send("/osc/url", OSCType.String, "hello") - ``` - */ + * Send an OSC message + ``` + osc.send("/osc/url", OSCType.String, "hello") + ``` + */ public send(address: string, type: T, value: OSCArgumentType): void { const arg: OSCArgument = {