Skip to content

Instantly share code, notes, and snippets.

@hyzhak
Created May 26, 2013 18:26
Show Gist options
  • Select an option

  • Save hyzhak/5653609 to your computer and use it in GitHub Desktop.

Select an option

Save hyzhak/5653609 to your computer and use it in GitHub Desktop.
Short js code to log leapmotion data thought websocket. From article [Leap Motion / Getting started with raw data](http://pressanykeytocreate.blogspot.com/2013/05/leap-motion-getting-started-with-raw.html)
var ws = new WebSocket("ws://localhost:6437/");
ws.onmessage = function(event) {
console.log(event.data);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment