simplex-chat-6.5.0.7
Safe HaskellNone
LanguageHaskell2010

Simplex.Chat.Library.Commands

Synopsis

Documentation

_defaultNtfServers :: [NtfServer] Source #

maxImageSize :: Integer Source #

startChatController :: Bool -> Bool -> CM' (Async ()) Source #

getConnsToSub :: User -> CM [ConnId] Source #

subscribeUsers :: Bool -> [User] -> CM' () Source #

updateNetworkConfig :: NetworkConfig -> SimpleNetCfg -> NetworkConfig Source #

useServers :: Foldable f => RandomAgentServers -> [(Text, ServerOperator)] -> f UserOperatorServers -> (NonEmpty (ServerCfg 'PSMP), NonEmpty (ServerCfg 'PXFTP)) Source #

execChatCommand :: Maybe RemoteHostId -> ByteString -> Int -> CM' (Either ChatError ChatResponse) Source #

parseChatCommand :: ByteString -> Either String ChatCommand Source #

processChatCommand :: VersionRangeChat -> NetworkRequestMode -> ChatCommand -> CM ChatResponse Source #

Chat API commands interpreted in context of a local zone

protocolServers :: forall (p :: ProtocolType). UserProtocol p => SProtocolType p -> ([Maybe ServerOperator], [UserServer 'PSMP], [UserServer 'PXFTP]) -> ([Maybe ServerOperator], [UserServer 'PSMP], [UserServer 'PXFTP]) Source #

updatedServers :: forall (p :: ProtocolType). UserProtocol p => SProtocolType p -> [AUserServer p] -> UserOperatorServers -> UpdatedUserOperatorServers Source #

setChatItemsExpiration :: User -> Int64 -> Int -> CM' () Source #

setExpireCIFlag :: User -> Bool -> CM' () Source #

type AgentSubResult = Map ConnId (Either AgentErrorType (Maybe ClientServiceId)) Source #

expireChatItems :: User -> Int64 -> Bool -> CM () Source #

expireGroupChatItems :: User -> VersionRangeChat -> Int64 -> UTCTime -> GroupId -> CM () Source #

withExpirationDate :: Int64 -> Maybe Int64 -> (UTCTime -> CM ()) -> CM () Source #

displayNameP :: Parser Text Source #

displayNameP_ :: Parser ByteString Source #

mkValidName :: String -> String Source #