ihp-1.4.0: Haskell Web Framework
Copyright(c) digitally induced GmbH 2020
Safe HaskellNone
LanguageGHC2021

IHP.AutoRefresh.Types

Description

 

Documentation

data AutoRefreshSession Source #

Constructors

AutoRefreshSession 

Fields

  • id :: !UUID
     
  • renderView :: !(Request -> Respond -> IO ())

    A callback to rerun an action within the given request and respond

  • event :: !(MVar ())

    MVar that is filled whenever some table changed

  • tables :: !(Set Text)

    All tables this auto refresh session watches

  • lastResponse :: !LByteString

    The last rendered html of this action. Initially this is the result of the initial page rendering

  • lastPing :: !UTCTime

    Keep track of the last ping to this session to close it after too much time has passed without anything happening

data AutoRefreshServer Source #

Constructors

AutoRefreshServer 

Fields