Safe Haskell | None |
---|---|
Language | Haskell2010 |
Examples of usage. In this module we implement a few standard ways one may wish to use this library.
- echoStdInOut :: String -> Int -> String -> IO ()
Documentation
Uses Pipes.Concurrent
to start up threads for reading from and writing to a single
WebSocket connection.
Input to send is read from stdin
and response are written to stdout
.
Try it out on echo.websocket.org with:
-- wsTest.hs module Main where import Pipes.WebSockets.Examples main :: IO () main = echoStdInOut "echo.websocket.org" 80 "/"