-
-
Save destos/4299457 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var osc = require('node-osc'); | |
| var io = require('socket.io-client'); | |
| var socket = io.connect('tulsadalek.com', function() { | |
| console.log(arguments); | |
| }) | |
| var OSCclient = osc.Client('127.0.0.1', 9001); | |
| socket.on('connect', function(){ | |
| console.log('connected'); | |
| }); | |
| socket.on('light', function(num) { | |
| OSCclient.send('/web/'+num, [1]); | |
| console.log('light', num); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment