MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / runMainE

Method runMainE

tsunami/engine/clientimpl.go:183–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181}
182
183func (c *ClientImpl) runMainE() error {
184 if c.AppInitFn != nil {
185 err := c.AppInitFn()
186 if err != nil {
187 return err
188 }
189 }
190 err := c.listenAndServe(context.Background())
191 if err != nil {
192 return err
193 }
194 <-c.DoneCh
195 return nil
196}
197
198func (c *ClientImpl) RegisterAppInitFn(fn func() error) {
199 c.AppInitFn = fn

Callers 1

RunMainMethod · 0.95

Calls 1

listenAndServeMethod · 0.95

Tested by

no test coverage detected