1import ProjectM36.Server.WebSocket
2import ProjectM36.Server.Config
3import ProjectM36.Server.ParseArgs
4import ProjectM36.Server
5import Control.Concurrent
6import qualified Network.WebSockets as WS
10 -- launch normal project-m36-server
11 portMVar <- newEmptyMVar
12 serverConfig <- parseConfig
13 let serverHost = bindHost serverConfig
14 _ <- forkFinally (launchServer serverConfig (Just portMVar)) failureHandler
15 --wait for server to be listening
16 serverPort <- takeMVar portMVar
17 --this built-in server is apparently not meant for production use, but it's easier to test than starting up the wai or snap interfaces
18 WS.runServer "0.0.0.0" 8888 (websocketProxyServer serverPort serverHost)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list