Created
May 26, 2013 18:26
-
-
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)
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 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