Liking cljdoc? Tell your friends :D

metabase.metabot.websocket

Logic for managing the websocket MetaBot uses to monitor and reply to Slack messages, specifically a 'monitor thread' that watches the websocket handling thread and disconnects/reconnects it when needed.

Logic for managing the websocket MetaBot uses to monitor and reply to Slack messages, specifically a 'monitor thread'
that watches the websocket handling thread and disconnects/reconnects it when needed.
raw docstring

currently-running?clj

(currently-running?)

Is the MetaBot running?

Checks whether there is currently a MetaBot websocket monitor thread running. (The monitor threads make sure the WebSocket connections are open; if a monitor thread is open, it's should be maintaining an open WebSocket connection.)

Is the MetaBot running?

Checks whether there is currently a MetaBot websocket monitor thread running. (The monitor threads make sure the
WebSocket connections are open; if a monitor thread is open, it's should be maintaining an open WebSocket
connection.)
sourceraw docstring

start-websocket-monitor!clj

(start-websocket-monitor!)

Start the WebSocket monitor thread. This thread periodically checks to make sure the WebSocket connection should be open, and if it should but is not, attempts to reconnect. If it is open but should not be, closes the current connection.

Start the WebSocket monitor thread. This thread periodically checks to make sure the WebSocket connection should be
open, and if it should but is not, attempts to reconnect. If it is open but should not be, closes the current
connection.
sourceraw docstring

stop!clj

(stop!)

Stop all MetaBot instances. Clear the current monitor thread ID, which will signal to any existing monitor threads to stop running; disconnect the current websocket.

Stop all MetaBot instances. Clear the current monitor thread ID, which will signal to any existing monitor threads to
stop running; disconnect the current websocket.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close