Created
May 12, 2014 20:59
-
-
Save rosskukulinski/5afe21de9519912df944 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
<html> | |
<head> | |
<script src="https://speakit.io/static/js/SpeakItClient.js"></script> | |
<script> | |
// JavaScript | |
var SpeakIt = require('SpeakItClient'); | |
var sClient = new SpeakIt(); | |
sClient.on('ready', function() { | |
sClient.connect(); | |
}); | |
sClient.on('connected', function() { | |
var room = sClient.joinRoom({room: 'speakIt', keycode: 'YOUR_KEYCODE'}); | |
room.on('joinedRoom', function(roomName) { | |
console.log('I am in the room!'); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
test | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment