Skip to content

Instantly share code, notes, and snippets.

@rosskukulinski
Created May 12, 2014 20:59
Show Gist options
  • Save rosskukulinski/5afe21de9519912df944 to your computer and use it in GitHub Desktop.
Save rosskukulinski/5afe21de9519912df944 to your computer and use it in GitHub Desktop.
<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