module NATS

Defined in:

nats.cr
nats/client.cr
nats/client/connection.cr
nats/client/subscription.cr
nats/client/types.cr
nats/defaults.cr
nats/exceptions.cr
nats/protocol.cr
nats/protocol/exceptions.cr
nats/protocol/parser.cr
nats/version.cr

Constant Summary

CR_LF = Protocol::CR_LF
DEFAULT_PORT = 4222_u16
DEFAULT_URL = "nats://localhost:#{DEFAULT_PORT}"
EMPTY_MESSAGE = Protocol::EMPTY_MESSAGE
LANG = "Crystal #{Crystal::VERSION}"
MAX_RECONNECT_ATTEMPTS = 10_u8
PING_COMMAND = Protocol::PING_COMMAND
PROTOCOL = 0
RECONNECT_TIME_WAIT = 2_u8
STATUSES = {disconnected: 0_u8, connected: 1_u8, disconnecting: 2_u8, reconnecting: 3_u8, connecting: 4_u8}
VERSION = "0.1.3"