GetClient returns the client for a specific profile by name.
(profileName string)
| 191 | |
| 192 | // GetClient returns the client for a specific profile by name. |
| 193 | func (m *GroupClientManager) GetClient(profileName string) (*ProfileClient, bool) { |
| 194 | m.mu.RLock() |
| 195 | defer m.mu.RUnlock() |
| 196 | client, exists := m.clients[profileName] |
| 197 | return client, exists |
| 198 | } |
| 199 | |
| 200 | // GetConnectedClients returns all currently connected profile clients. |
| 201 | func (m *GroupClientManager) GetConnectedClients() []*ProfileClient { |
no outgoing calls