Skip to content

Instantly share code, notes, and snippets.

@nodesocket
Created October 3, 2011 22:12
Show Gist options
  • Save nodesocket/1260399 to your computer and use it in GitHub Desktop.
Save nodesocket/1260399 to your computer and use it in GitHub Desktop.
//Socket not connected
else {
//Not already trying to connect, create a new socket
if(!logify.connecting) {
//Create the socket
logify.connecting = true;
logify.connect();
}
//Write to temporary storage array
logify.storage.push({ message: message, callback: p_callback });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment