websockets-0.5.1.0: A sensible and clean way to write WebSocket-capable servers in Haskell.

Network.WebSockets.Internal

Description

This module exports some extra functions. However, note that these utilities are primarily meant for internal use, and can change between minor releases.

Synopsis

Documentation

iterSocket :: Socket -> Iteratee ByteString IO ()Source

Create an iterator which writes to a socket. Throws a ConnectionClosed exception if the user attempts to write to a closed socket.