Skip to content

Commit

Permalink
Revert "[ server ] Changed default mode as socket mode."
Browse files Browse the repository at this point in the history
This reverts commit eb95434.
  • Loading branch information
geoffcysu committed Nov 15, 2022
1 parent 1e62702 commit adb97f5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,7 @@ run devMode = do
_ <- runServerWithHandles handle handle (serverDefn env)
putStrLn "== dev server closed =="
else do
-- runServer (serverDefn env)
let port = "3000"
putStrLn "== GCL backend program started =="
_ <- forkIO (printLog env)
serve (Host "127.0.0.1") port $ \(sock, _remoteAddr) -> do
putStrLn $ "== GCL language server established at port:" ++ port ++ " =="
handle <- socketToHandle sock ReadWriteMode
_ <- runServerWithHandles handle handle (serverDefn env)
putStrLn "== GCL language server closed =="
runServer (serverDefn env)
where
printLog :: GlobalEnv -> IO ()
printLog env = forever $ do
Expand Down

0 comments on commit adb97f5

Please sign in to comment.