Files
simplexmq/apps/smp-server/Main.hs
2020-11-22 18:22:20 +00:00

19 lines
325 B
Haskell

module Main where
import Simplex.Messaging.Server (runSMPServer)
import Simplex.Messaging.Server.Env.STM
cfg :: Config
cfg =
Config
{ tcpPort = "5223",
tbqSize = 16,
queueIdBytes = 12,
msgIdBytes = 6
}
main :: IO ()
main = do
putStrLn $ "Listening on port " ++ tcpPort cfg
runSMPServer cfg