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
// RUN `npm install` | |
var io = require('socket.io')(); | |
var port = 3000; | |
var accelerometer = { | |
x:0, | |
y:0, | |
z:0 |
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
// NEED TO RUN `npm install` | |
// | |
// REPLACE ADDRESS AND PORT WITH YOUR OWN | |
var socket = require('socket.io-client')('http://192.168.1.203:3000'); | |
var accelerometer = { | |
x : 0, | |
y : 0, |