Skip to content

Instantly share code, notes, and snippets.

@dgershman
Created June 27, 2012 14:27
Show Gist options
  • Save dgershman/3004386 to your computer and use it in GitHub Desktop.
Save dgershman/3004386 to your computer and use it in GitHub Desktop.
Client Code - RAPJS
<script src="/socket.io/socket.io.js"></script>
<script type="text/javascript">
var socket = io.connect();
var presence = 0;
socket.on('real-action', function(data) {
presence = data.data;
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment