Subscribe subscribes on the default PubSub.
(ctx context.Context, names []string, ids []*ttnpb.EntityIdentifiers, hdl Handler)
| 42 | |
| 43 | // Subscribe subscribes on the default PubSub. |
| 44 | func Subscribe(ctx context.Context, names []string, ids []*ttnpb.EntityIdentifiers, hdl Handler) error { |
| 45 | return defaultPubSub.Subscribe(ctx, names, ids, hdl) |
| 46 | } |
| 47 | |
| 48 | // Publish emits events on the default event pubsub. |
| 49 | func Publish(evs ...Event) { |