Skip to content

Instantly share code, notes, and snippets.

@collin
Created September 2, 2008 20:29
Show Gist options
  • Save collin/8458 to your computer and use it in GitHub Desktop.
Save collin/8458 to your computer and use it in GitHub Desktop.
function do_send() {
var method = [].shift.apply(arguments);
var payload = {id:id++, method: method, params:arguments};
socket.send(JSON.stringify(payload)+"\r\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment