Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rocketchat

Rocket.Chat adapter processes incoming message stream, providing the their this modules as attributes for advanced branch callbacks to use. Provides member alias to some SDK methods, to support legacy Hubot scripts.

Hierarchy

Index

Constructors

constructor

Properties

api

api: "/home/circleci/repo/node_modules/@rocket.chat/sdk/dist/lib/api" = sdk.api

bot

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

The current bBot instance

driver

driver: "/home/circleci/repo/node_modules/@rocket.chat/sdk/dist/lib/driver" = sdk.driver

methodCache

methodCache: "/home/circleci/repo/node_modules/@rocket.chat/sdk/dist/lib/methodCache" = sdk.methodCache

name

name: string = "rocketchat-message-adapter"

settings

settings: "/home/circleci/repo/node_modules/@rocket.chat/sdk/dist/lib/settings" = sdk.settings

Methods

callMethod

  • callMethod(method: string, ...args: any[]): Promise<any>

dispatch

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

format

  • format(input: string): string
  • Parse any strings before sending to fix for Rocket.Chat syntaxes

    Parameters

    • input: string

    Returns string

getRoomId

  • getRoomId(room: string): Promise<string>

process

  • process(err: Error | null, message: any, meta: any): Promise<State>
  • Collect attributes to receive every incoming message in subscription

    Parameters

    • err: Error | null
    • message: any
    • meta: any

    Returns Promise<State>

shutdown

  • shutdown(): Promise<void>

start

  • start(): Promise<void>

Generated using TypeDoc