matterhorn-50200.17.0: Terminal client for the Mattermost chat system
Safe HaskellNone
LanguageHaskell2010

Matterhorn.Connection

Synopsis

Documentation

processWebsocketActions :: ChatState -> MMWebSocket -> Int64 -> HashMap ChannelId (Max UTCTime) -> IO () Source #

Take websocket actions from the websocket action channel in the ChatState and send them to the server over the websocket.

Takes and propagates the action sequence number which is incremented for each successful send.

Keeps and propagates a map of channel id to last user_typing notification send time so that the new user_typing actions are throttled to be send only once in two seconds.