Last active
August 29, 2015 14:22
-
-
Save peterdemartini/d547461b36dd1caf79dc 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
node_modules/.bin/browserify -t coffeeify --extension=".coffee" -s GatebluWebsocket index.coffee > public/gateblu-websocket.js && hs -p 3444 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="http://localhost:3444/gateblu-websocket.js"></script> | |
<script type="text/javascript"> | |
(function(){ | |
var meshbluJSON = { | |
"uuid": "eaed33d7-c723-47dd-9f9a-e70fb45b55d8", | |
"token": "588e19e90143c8ecf990c0c843f3a811a829dea4" | |
} | |
var gatebluWebsocket = new GatebluWebsocket(meshbluJSON) | |
gatebluWebsocket.run() | |
})() | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment