Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
gb.on(Sockets.CONTROL_RECEIVED, async(payload) => {
  if (payload.id === "reload") {
    console.log("We should reload our application!");
  }
});

...

Code Block
gb.on(Sockets.SETTING_RECEIVED, async(payload) => {
  if (payload.id === "idle_timeout_secs") {
    console.log(`New idle timeout: ${ payload.value }`);
  }
});

...