MCPcopy
hub / github.com/42wim/matterbridge / Connect

Method Connect

bridge/steam/steam.go:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func (b *Bsteam) Connect() error {
32 b.Log.Info("Connecting")
33 b.c = steam.NewClient()
34 go b.handleEvents()
35 go b.c.Connect()
36 select {
37 case <-b.connected:
38 b.Log.Info("Connection succeeded")
39 case <-time.After(time.Second * 30):
40 return fmt.Errorf("connection timed out")
41 }
42 return nil
43}
44
45func (b *Bsteam) Disconnect() error {
46 b.c.Disconnect()

Callers

nothing calls this directly

Calls 2

handleEventsMethod · 0.95
ConnectMethod · 0.65

Tested by

no test coverage detected