code: def connect(self, ctx):
  
          
  
          if hasattr(ctx,"conn") or "host" not in ctx.params:
              return
  
          ctx.conn = conn = connect(ctx.params["host"])
          lnk = link.Link()
          lnk.wire("main", receive=conn, send=conn)
          ctx.client = api.Client(link=lnk)
          ctx.widget = ClientWidget(ctx.client, "engineer")
docs: establish xbahn connection and store on click context