Skip to content

Instantly share code, notes, and snippets.

@andrelip
Last active July 18, 2016 19:41
Show Gist options
  • Select an option

  • Save andrelip/bd1c6f7c5a6882aafb37e739325d2b4e to your computer and use it in GitHub Desktop.

Select an option

Save andrelip/bd1c6f7c5a6882aafb37e739325d2b4e to your computer and use it in GitHub Desktop.
chan.join()
.receive("ignore", () => console.log("auth error"))
.receive("ok", () => console.log("join ok"))
.receive("timeout", () => console.log("Connection interruption"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment