box-socket-0.4.1: Box websockets
Safe HaskellSafe-Inferred
LanguageHaskell2010

Box.Socket.Example

Synopsis

Documentation

q' :: IO a -> IO (Either () a) Source #

tClient :: [Text] -> IO [Either Text Text] Source #

test of clientApp via a cRef committer and a canned list of Text

tClientIO :: [Text] -> IO () Source #

testRun :: IO [Either Text Text] Source #

main test run of client-server functionality the code starts a server in a thread, starts the client in the main thread, and cancels the server on completion. > testRun [Left "receiver: received: echo:1",Right "echo:1",Left "receiver: received: echo:2",Right "echo:2",Left "receiver: received: echo:3",Right "echo:3",Left "receiver: received: close: 1000 "received close signal: responder closed.""]