@eventmsg/core
Version:
EventMsgV3 TypeScript library - Core protocol implementation with transport abstraction
16 lines • 2.31 kB
text/typescript
import { EventMsgError } from "./errors/event-msg-error.cjs";
import { DecodingError, EncodingError, InvalidMessageError, ProtocolError, ValidationError } from "./errors/protocol-error.cjs";
import { ConnectionTimeoutError, SendTimeoutError, TimeoutError, WaitForTimeoutError } from "./errors/timeout-error.cjs";
import { ConnectionError, DisconnectionError, SendError, TransportError } from "./errors/transport-error.cjs";
import { AddressValidationError, MessageSizeError, ValidationError as ValidationError$1 } from "./errors/validation-error.cjs";
import { DEFAULT_LOGGING_CONFIG, LOG_NAMESPACES, LoggingConfig } from "./types/logger.cjs";
import { Transport, TransportConfig } from "./types/transport.cjs";
import { DEFAULT_CONFIG, DEFAULT_PROTOCOL_OPTIONS, EventMsgConfig, ProtocolOptions } from "./types/config.cjs";
import { MessageHeader, MessageMetadata, MessageResult, SendOptions, WaitForOptions } from "./types/message.cjs";
import { DecodedMessage, Protocol } from "./protocol.cjs";
import { ConnectionStats, INTERNAL_EVENTS, MessageHandler } from "./types/events.cjs";
import { EventMsg } from "./event-msg.cjs";
import { CONTROL_CHARS, getMaxStuffedSize, getMinUnstuffedSize, isValidStuffing, needsStuffing, stuff, unstuff } from "./internal/byte-stuffing.cjs";
import { configureLogging, getLogger, hexDump } from "./internal/logger.cjs";
import { BaseTransport } from "./types/base-transport.cjs";
export { AddressValidationError, BaseTransport, CONTROL_CHARS, ConnectionError, type ConnectionStats, ConnectionTimeoutError, DEFAULT_CONFIG, DEFAULT_LOGGING_CONFIG, DEFAULT_PROTOCOL_OPTIONS, type DecodedMessage, DecodingError, DisconnectionError, EncodingError, EventMsg, type EventMsgConfig, EventMsgError, INTERNAL_EVENTS, InvalidMessageError, LOG_NAMESPACES, type LoggingConfig, type MessageHandler, type MessageHeader, type MessageMetadata, type MessageResult, MessageSizeError, Protocol, ProtocolError, type ProtocolOptions, ValidationError as ProtocolValidationError, SendError, type SendOptions, SendTimeoutError, TimeoutError, type Transport, type TransportConfig, TransportError, ValidationError$1 as ValidationError, type WaitForOptions, WaitForTimeoutError, configureLogging, getLogger, getMaxStuffedSize, getMinUnstuffedSize, hexDump, isValidStuffing, needsStuffing, stuff, unstuff };