UNPKG

@eventmsg/core

Version:

EventMsgV3 TypeScript library - Core protocol implementation with transport abstraction

16 lines (15 loc) 1.78 kB
import { EventMsgError } from "./errors/event-msg-error.js"; import { DecodingError, EncodingError, InvalidMessageError, ProtocolError, ValidationError } from "./errors/protocol-error.js"; import { ConnectionTimeoutError, SendTimeoutError, TimeoutError, WaitForTimeoutError } from "./errors/timeout-error.js"; import { ConnectionError, DisconnectionError, SendError, TransportError } from "./errors/transport-error.js"; import { AddressValidationError, MessageSizeError, ValidationError as ValidationError$1 } from "./errors/validation-error.js"; import { DEFAULT_LOGGING_CONFIG, LOG_NAMESPACES } from "./types/logger.js"; import { configureLogging, getLogger, hexDump } from "./internal/logger.js"; import { CONTROL_CHARS, getMaxStuffedSize, getMinUnstuffedSize, isValidStuffing, needsStuffing, stuff, unstuff } from "./internal/byte-stuffing.js"; import { DEFAULT_CONFIG, DEFAULT_PROTOCOL_OPTIONS } from "./types/config.js"; import { Protocol } from "./protocol.js"; import { INTERNAL_EVENTS } from "./types/events.js"; import { EventMsg } from "./event-msg.js"; import { BaseTransport } from "./types/base-transport.js"; import "./types/index.js"; export { AddressValidationError, BaseTransport, CONTROL_CHARS, ConnectionError, ConnectionTimeoutError, DEFAULT_CONFIG, DEFAULT_LOGGING_CONFIG, DEFAULT_PROTOCOL_OPTIONS, DecodingError, DisconnectionError, EncodingError, EventMsg, EventMsgError, INTERNAL_EVENTS, InvalidMessageError, LOG_NAMESPACES, MessageSizeError, Protocol, ProtocolError, ValidationError as ProtocolValidationError, SendError, SendTimeoutError, TimeoutError, TransportError, ValidationError$1 as ValidationError, WaitForTimeoutError, configureLogging, getLogger, getMaxStuffedSize, getMinUnstuffedSize, hexDump, isValidStuffing, needsStuffing, stuff, unstuff };