@rekurt/openkline - v0.2.0
    Preparing search index...

    Class WebSocketTransportAbstract

    Abstract WebSocket transport. Implement the abstract methods for your specific WS library (Centrifugo, Socket.IO, native WebSocket, etc.)

    Implements

    Index

    Constructors

    Properties

    _config: DataFeedConfig | null = null
    _onUpdate: ((candles: Candle[]) => void) | null = null

    Methods

    • Subscribe to a specific channel/topic

      Parameters

      • channel: string
      • handler: (data: unknown) => void

      Returns void

    • Unsubscribe from a channel

      Parameters

      • channel: string

      Returns void