NewDefaultClient creates and returns a new DefaultClient instance.
()
| 90 | |
| 91 | // NewDefaultClient creates and returns a new DefaultClient instance. |
| 92 | func NewDefaultClient() *DefaultClient { |
| 93 | return &DefaultClient{ |
| 94 | id: security.RandomString(40), |
| 95 | store: map[string]any{}, |
| 96 | channel: make(chan Message), |
| 97 | subscriptions: map[string]SubscriptionOptions{}, |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | // Id implements the [Client.Id] interface method. |
| 102 | func (c *DefaultClient) Id() string { |
searching dependent graphs…