Copyright(c) digitally induced GmbH 2020
Safe HaskellNone

IHP.AutoRefresh.Types

Description

 

Documentation

data AutoRefreshSession Source #

Constructors

AutoRefreshSession 

Fields

  • id :: !UUID
     
  • renderView :: !(RequestContext -> IO ())

    A callback to rerun an action within a given request context

  • event :: !(MVar ())

    MVar that is filled whenever some table changed

  • tables :: !(Set ByteString)

    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