Safe Haskell | None |
---|
Tempo
Documentation
type ClientState = [Client]Source
logicalTime :: Tempo -> Double -> DoubleSource
addClient :: Client -> ClientState -> ClientStateSource
removeClient :: Client -> ClientState -> ClientStateSource
broadcast :: Text -> ClientState -> IO ()Source
serverApp :: MVar Tempo -> MVar ClientState -> Request -> WebSockets Hybi00 ()Source
serverLoop :: Protocol p => MVar Tempo -> MVar ClientState -> Client -> WebSockets p ()Source