Crux vdev Crux.Base View Source
You can set as environment for
If the token is provided it will be forwarded to both
Also this will fetch and put the gateway
:url and recommended
:shard_count if not already specified.
For task based cosuming you can use the provided
You are also free to roll your own consumer / producer consumer setup by subscribing to the producers fetchable via
Link to this section Summary
Link to this section Functions
producers() View Source
Computes a map of all producers keyed by shard_id.
Values are either a
pid/0 or, if for some reason the producer could not be found,
Crux.Gateway.Connection.Producer.producers/0, but they are emitting
Crux.Base.Consumer.event()s instead of raw discord api payloads.