code: function () {
                  /*  determine parameters  */
                  var params = $cs.params("socket", arguments, {
                      name:   {         def: "default"  },
                      scope:  {         def: null       },
                      ctx:    { pos: 0, req: true       },
                      plug:   { pos: 1, def: null       }, /*  removed "req: true"  */
                      unplug: { pos: 2, def: null       }, /*  removed "req: true"  */
                      spool:  {         def: null       }
                  });
  
                  /*  provide specialized socket "plug" functionality  */
                  if (params.plug === null) {
                      params.plug = function (el /*, comp */) {
                          /*  on-the-fly get the HTML element from jQuery/Vue object  */
                          if (isjQuery(el))
                              el = el.get(0);
                          else if (isVue(el))
                              el = el.$el;
  
                          /*  append it to the DOM tree (the jQuery or plain way)  */
                          if (isjQuery(this))
                              this.append(el);
                          else
                              this.appendChild(el);
                      };
                  }
  
                  /*  provide specialized socket "unplug" functionality  */
                  if (params.unplug === null) {
                      params.unplug = function (el /*, comp */) {
                          /*  remove it from the DOM tree (the jQuery way)  */
                          if (isjQuery(el))
                              el.detach();
                          else {
                              /*  on-the-fly get the HTML element from Vue object  */
                              if (isVue(el))
                                  el = el.$el;
  
                              /*  remove it from the DOM tree (the plain way)  */
                              var parent = el.parentElement;
                              if (parent !== null)
                                  parent.removeChild(el);
                          }
                      };
                  }
  
                  /*  pass-through execution to original/base method  */
                  return this.base(params);
              }
docs: /*  override the original ComponentJS socket() API method