The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
NewMultiReplicaSubscribeFn returns a SubscribeFn that manages
relay connections to remote replicas and returns relay
message_part events only. OSS handles pubsub subscription,
message catch-up, queue updates, status forwarding, and local
parts merging.
MultiReplicaSubscribeConfig holds the dependencies for multi-replica chat
subscription. ReplicaIDFn is called lazily because the
replica ID may not be known at construction time.
DialerFn, when set, overrides the default WebSocket relay
dialer. This is used in tests to inject mock relay behavior
without requiring real HTTP servers.
type RelayDialError struct {
HTTPStatus int Err error}
RelayDialError wraps a failed relay handshake. HTTPStatus is 0
when the failure happened before a response (DNS, TCP, TLS,
timeout, context cancel); otherwise it carries the peer's status
code for the reconnect loop to classify.
IsUnrecoverable reports whether retrying with the same captured
session token is futile. Only 401/403 qualify - the token is dead
or the peer won't authorize it. 5xx, 429, network, and context
errors fall through to backoff.