How to use the osc/dist/osc-browser.WebSocketPort function in osc

To help you get started, we’ve selected a few osc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mimic-sussex / sema / src / interfaces / oscInterface.js View on Github external
constructor() {
		// this.oscResponderFunction = (msg)=>{
		//   console.log("OSC message:", msg);
		// };

		this.port = new osc.WebSocketPort({
			url: "ws://localhost:8081"
		});
		// this.port.on("message", this.oscResponderFunction);
	}