Skip to content

jshea2/WebsocketOSC

Repository files navigation

128x128

WebsocketOSC

Send and Recieve OSC via Websockets

Screen Shot 2022-10-26 at 8 46 42 PM

cables.gl example projects:

Screen Shot 2022-10-31 at 8 13 24 PM

9fc8954460e74375b4b4c3d4ff57cba2.mov

Features:

  • Single OSC message supports muliple arguments (v1.3.0)
  • Bundle OSC messages are supported (v1.3.0)
  • When websocket recieves data it is then broadcast to all connected clients (v1.3.0)

OSC to Websocket syntax

OSC Message:

/foo 1234

Websocket Message:

{[
  "/foo",
  1234
]}

Getting data in cables.gl

Use operators ReceiveOSC_WebsocketOSC, SendOSC_WebsocketOSC, or ReceiveOSCBundle_WebsocketOSC to parse data from and/or to the Websocket operator.

Simple example cables.gl project

Credits:

Inspired by osc2ws.

Join the Discord Community

chat on Discord