Created
December 27, 2015 13:32
-
-
Save kakenn/3c1ec0d182594a35ab0c to your computer and use it in GitHub Desktop.
This file contains 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 session, socket; | |
var pepperAddress = "pepper.local" | |
$(function(){ | |
session | |
session = new QiSession(pepperAddress); | |
socket = session.socket(); | |
socket.on('connect', function() { | |
console.info('接続しました'); | |
}).on('error', function() { | |
console.error('接続できません'); | |
location.reload(); | |
}).on('disconnect', function() { | |
console.error('接続が切れました'); | |
location.reload(); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment