-
Notifications
You must be signed in to change notification settings - Fork 31
Websocket Server Plugin
Andreas Dzialocha edited this page Jan 12, 2017
·
7 revisions
A default WebSocket server instance listening on ws://localhost:8080
.
const osc = new OSC({ plugin: new OSC.WebsocketServerPlugin() })
osc.open() // start server on port 8080
The options can be passed on inside the constructor
or open
method (see example below).
{
host: 'localhost', // @param {string} Hostname of WebSocket server
port: 8080 // @param {number} Port of WebSocket server
}
const osc = new OSC({ plugin: new OSC.WebsocketServerPlugin() })
osc.open({ port: 9912 })
- Example: How to create an OSC WebSocket server with osc-js.
-
Documentation: Read about the
WebsocketServerPlugin
class here.
osc-js | Overview | Basic Usage | Documentation
Getting started
Plugins
Customize
Examples