Copyright | (c) 2019 Athan Clark |
---|---|
License | BSD-3-Style |
Maintainer | athan.clark@gmail.com |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Use these functions to communicate over a WebSocket as your peer-to-peer communication mechanism.
Documentation
secondPeerWebSocketLazyByteString Source #
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> MonadCatch m | |
=> Extractable stM | |
=> WebSocketParams | |
-> Debug | |
-> SymbioteT ByteString m () | Tests registered |
-> m () |
firstPeerWebSocketLazyByteString Source #
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> MonadCatch m | |
=> Extractable stM | |
=> WebSocketParams | |
-> Debug | |
-> SymbioteT ByteString m () | Tests registered |
-> m () |
secondPeerWebSocketByteString Source #
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> MonadCatch m | |
=> Extractable stM | |
=> WebSocketParams | |
-> Debug | |
-> SymbioteT ByteString m () | Tests registered |
-> m () |
firstPeerWebSocketByteString Source #
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> MonadCatch m | |
=> Extractable stM | |
=> WebSocketParams | |
-> Debug | |
-> SymbioteT ByteString m () | Tests registered |
-> m () |
secondPeerWebSocketJson Source #
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> MonadCatch m | |
=> Extractable stM | |
=> WebSocketParams | |
-> Debug | |
-> SymbioteT Value m () | Tests registered |
-> m () |
firstPeerWebSocketJson Source #
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> MonadCatch m | |
=> Extractable stM | |
=> WebSocketParams | |
-> Debug | |
-> SymbioteT Value m () | Tests registered |
-> m () |
peerWebSocketLazyByteString Source #
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> MonadCatch m | |
=> Extractable stM | |
=> Show (them ByteString) | |
=> Serialize (me ByteString) | |
=> Serialize (them ByteString) | |
=> WebSocketParams | |
-> Debug | |
-> ((me ByteString -> m ()) -> m (them ByteString) -> (Topic -> m ()) -> (Failure them ByteString -> m ()) -> (Topic -> Float -> m ()) -> SymbioteT ByteString m () -> m ()) | |
-> SymbioteT ByteString m () | Tests registered |
-> m () |
peerWebSocketByteString Source #
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> MonadCatch m | |
=> Extractable stM | |
=> Show (them ByteString) | |
=> Serialize (me ByteString) | |
=> Serialize (them ByteString) | |
=> WebSocketParams | |
-> Debug | |
-> ((me ByteString -> m ()) -> m (them ByteString) -> (Topic -> m ()) -> (Failure them ByteString -> m ()) -> (Topic -> Float -> m ()) -> SymbioteT ByteString m () -> m ()) | Encode and send, receive and decode, on success, on failure, on progress, and test set |
-> SymbioteT ByteString m () | Tests registered |
-> m () |
:: MonadIO m | |
=> MonadBaseControl IO m stM | |
=> Extractable stM | |
=> Show (them Value) | |
=> ToJSON (me Value) | |
=> FromJSON (them Value) | |
=> WebSocketParams | |
-> Debug | |
-> ((me Value -> m ()) -> m (them Value) -> (Topic -> m ()) -> (Failure them Value -> m ()) -> (Topic -> Float -> m ()) -> SymbioteT Value m () -> m ()) | Encode and send, receive and decode, on success, on failure, on progress, and test set |
-> SymbioteT Value m () | Tests registered |
-> m () |
data WebSocketServerOrClient Source #
Instances
Eq WebSocketServerOrClient Source # | |
Defined in Test.Serialization.Symbiote.WebSocket |
data WebSocketParams Source #
WebSocketParams | |
|