-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | See readme.md -- -- See readme.md for description. @package box-socket @version 0.0.1 module Box.Socket data SocketConfig SocketConfig :: Text -> Int -> Text -> SocketConfig [host] :: SocketConfig -> Text [port] :: SocketConfig -> Int [path] :: SocketConfig -> Text defaultSocketConfig :: SocketConfig runClient :: MonadIO m => SocketConfig -> ClientApp () -> m () runServer :: MonadIO m => SocketConfig -> ServerApp -> m () connect :: (MonadIO m, MonadConc m) => PendingConnection -> Cont m Connection clientApp :: (MonadIO m, MonadConc m) => Box m (Either Text Text) Text -> Connection -> m () responderApp :: (Text -> Either Text Text) -> PendingConnection -> IO () serverApp :: (MonadConc m, MonadIO m) => Box m Text Text -> PendingConnection -> m () -- | default websocket receiver Lefts are info/debug receiver' :: MonadIO m => Committer m (Either Text Text) -> Connection -> m Bool -- | default websocket receiver Lefts are info/debug receiver :: MonadIO m => Committer m Text -> Connection -> m () -- | default websocket sender sender :: (MonadIO m, WebSocketsData a, Show a) => Box m Text a -> Connection -> m () -- | a receiver that responds based on received Text. lefts are quit -- signals. Rights are response text. responder :: MonadIO m => (Text -> Either Text Text) -> Committer m Text -> Connection -> m () instance GHC.Generics.Generic Box.Socket.SocketConfig instance GHC.Classes.Eq Box.Socket.SocketConfig instance GHC.Show.Show Box.Socket.SocketConfig