Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MessageAdapter

Message Adapter class, extended to connect bBot with messaging platform.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new MessageAdapter(bot: "/home/circleci/repo/src/index"): MessageAdapter
  • Create an adapter instance. Adapter modules should provide a .use method that accepts the bot, to provide to their adapter class constructor, returning the instance.

    Parameters

    • bot: "/home/circleci/repo/src/index"

      The current bBot instance

    Returns MessageAdapter

Properties

bot

bot: "/home/circleci/repo/src/index"

The current bBot instance

name

name: string = "message-adapter"

Methods

Abstract dispatch

  • dispatch(envelope: Envelope): Promise<any>

Abstract shutdown

  • shutdown(): Promise<void>

Abstract start

  • start(): Promise<void>

Generated using TypeDoc