Safe Haskell | None |
---|---|
Language | Haskell2010 |
- inStatus2xx :: Int -> Bool
- handler :: Connection -> MVar () -> IO ()
- wsExceptionHandler :: Text -> SomeException -> IO ()
- close :: Connection -> IO ()
Documentation
inStatus2xx :: Int -> Bool Source
check HTTP status code is success
handler :: Connection -> MVar () -> IO () Source
Start thread to recieve response
wsExceptionHandler :: Text -> SomeException -> IO () Source
Handle exception from websocket.
Ignore ConnectionClised exception that expected.
close :: Connection -> IO () Source
Close connection