import { SocketModeClient } from "https://deno.land/x/slack_bolt@1.0.0/deps.ts";
An Socket Mode Client allows programs to communicate with the Slack Platform's Events API over a websocket. This object uses the EventEmitter pattern to dispatch incoming events and has a built in send method to acknowledge incoming events over the websocket.
Properties
Methods
onmessage
handler for the client's websocket. This will parse the
payload and dispatch the relevant events for each incoming message.
Method for sending an outgoing message of an arbitrary type over the websocket connection. Primarily used to send acknowledgements back to slack for incoming events
Set up method for the client's websocket instance. This method will attach event listeners.
Tear down method for the client's websocket instance. This method undoes the work in setupWebSocket(url).
End a Socket Mode session. After this method is called no messages will be sent or received unless you call start() again later.
Begin an Socket Mode session. This method must be called before any messages can be sent or received.