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.

Revisions

  1. andrelip revised this gist Jul 18, 2016. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions es2015dots.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,4 @@
    chan.join()
    .receive("ignore", () => console.log("auth error"))
    .receive("ok", () => console.log("join ok"))
    .receive("timeout", () => console.log("Connection interruption"))
    chan.onError(e => console.log("something went wrong", e))
    chan.onClose(e => console.log("channel closed", e))
    .receive("timeout", () => console.log("Connection interruption"))
  2. andrelip revised this gist Jul 18, 2016. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions es2015dots.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    chan.join()
    .receive("ignore", () => console.log("auth error"))
    .receive("ok", () => console.log("join ok"))
    .receive("timeout", () => console.log("Connection interruption"))
    chan.onError(e => console.log("something went wrong", e))
    chan.onClose(e => console.log("channel closed", e))
    .receive("ignore", () => console.log("auth error"))
    .receive("ok", () => console.log("join ok"))
    .receive("timeout", () => console.log("Connection interruption"))
    chan.onError(e => console.log("something went wrong", e))
    chan.onClose(e => console.log("channel closed", e))
  3. andrelip renamed this gist Jul 18, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. andrelip created this gist Jul 18, 2016.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    chan.join()
    .receive("ignore", () => console.log("auth error"))
    .receive("ok", () => console.log("join ok"))
    .receive("timeout", () => console.log("Connection interruption"))
    chan.onError(e => console.log("something went wrong", e))
    chan.onClose(e => console.log("channel closed", e))