UNPKG

slack-edge

Version:

Slack app development framework for edge functions with streamlined TypeScript support

21 lines 825 B
import { SlackApp } from "../app"; import { SlackSocketModeAppEnv } from "../app-env"; /** * An experimental Socket Mode client * * Please note that this is still experimental and it's not recommended to use it for production apps. * If you need a reliable Socket Mode client, please use @slack/socket-mode library on Node.js along with slack-edge. * * @todo Implement proper reconnection logic * @todo Add connection monitor like 1st party SDKs do * @todo Add Bun support (the runtime does not work well with Socket Mode) */ export declare class SocketModeClient { app: SlackApp<SlackSocketModeAppEnv>; appLevelToken: string; ws: WebSocket | undefined; constructor(app: SlackApp<any>); connect(): Promise<void>; disconnect(): Promise<void>; } //# sourceMappingURL=socket-mode-client.d.ts.map