MCPcopy Index your code
hub / github.com/screego/server / Execute

Method Execute

ws/event_share.go:11–33  ·  view source on GitHub ↗
(rooms *Rooms, current ClientInfo)

Source from the content-addressed store, hash-verified

9type StartShare struct{}
10
11func (e *StartShare) Execute(rooms *Rooms, current ClientInfo) error {
12 room, err := rooms.CurrentRoom(current)
13 if err != nil {
14 return err
15 }
16
17 room.Users[current.ID].Streaming = true
18
19 v4, v6, err := rooms.config.TurnIPProvider.Get()
20 if err != nil {
21 return err
22 }
23
24 for _, user := range room.Users {
25 if current.ID == user.ID {
26 continue
27 }
28 room.newSession(current.ID, user.ID, rooms, v4, v6)
29 }
30
31 room.notifyInfoChanged()
32 return nil
33}

Callers

nothing calls this directly

Calls 4

CurrentRoomMethod · 0.80
newSessionMethod · 0.80
notifyInfoChangedMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected