()
| 207 | } |
| 208 | |
| 209 | func (s *webhookTestServer) ClearEvents() { |
| 210 | s.lock.Lock() |
| 211 | s.events = make(map[string]*livekit.WebhookEvent) |
| 212 | s.lock.Unlock() |
| 213 | } |
| 214 | |
| 215 | func (s *webhookTestServer) Start() error { |
| 216 | l, err := net.Listen("tcp", s.server.Addr) |