code: function codecastStream() {
      if (!(jsbin && jsbin.panels && jsbin.panels.panels)) return;
      var editors = jsbin.panels.panels;
  
      function setCode(event) {
        var panelId = event.type;
        if (!editors[panelId]) return;
        var cursor = editors[panelId].editor.getCursor();
        editors[panelId].setCode(event.data);
        editors[panelId].editor.setCursor(cursor);
      }
  
      // Update the url when the revision is bumped
      es.addEventListener('bump-revision', function (event) {
        window.location.pathname = cleanPath(event.data) + '/edit';
      });
      // on data, update the panels, which will cause an automatic render
      es.addEventListener('css', setCode);
      es.addEventListener('javascript', setCode);
      es.addEventListener('html', setCode);
    }
docs: Manage the codecasting stream. Wait for code events (for each panel) then
  update the appropriate panel