jaspervdj / websockets

A Haskell library for creating WebSocket-capable servers
http://jaspervdj.be/websockets
BSD 3-Clause "New" or "Revised" License
407 stars 114 forks source link

ParseExpection "String" in Server on client connect. #188

Closed YellowOnion closed 5 years ago

YellowOnion commented 5 years ago

I get this runtime error, no clue why, no clue where it's coming from, the WS client is getting connection refused.

I'm running on Windows, so perhaps some edge case?

    (\chan ->
      forkIO . WS.runServer ("127.0.0.1") 9160
       $ \pending -> do
         conn <- WS.acceptRequest pending
         forever $ do 
          msg <- atomically $ readTChan chan
          WS.sendTextData conn $ msg
    )
YellowOnion commented 5 years ago

I figured it out, I was using wss, thus the connection was encrypted, perhaps make this error more obvious?