Skip to content

Instantly share code, notes, and snippets.

@joshkehn
Created August 5, 2011 15:11
Show Gist options
  • Save joshkehn/1127739 to your computer and use it in GitHub Desktop.
Save joshkehn/1127739 to your computer and use it in GitHub Desktop.
WebSocket - Part 13
server.addListener("close",
function(conn)
{
clearInterval(intervals[conn]);
server.broadcast("<"+conn.id+"> disconnected");
sys.log(conn.id + " disconnected");
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment