mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-30 20:45:52 +00:00
19 lines
282 B
Haskell
19 lines
282 B
Haskell
module Main where
|
|
|
|
import Env.STM
|
|
import Server (runSMPServer)
|
|
|
|
cfg :: Config
|
|
cfg =
|
|
Config
|
|
{ tcpPort = "5223",
|
|
tbqSize = 16,
|
|
queueIdBytes = 12,
|
|
msgIdBytes = 6
|
|
}
|
|
|
|
main :: IO ()
|
|
main = do
|
|
putStrLn $ "Listening on port " ++ tcpPort cfg
|
|
runSMPServer cfg
|