miso-1.8.5.0: A tasty Haskell front-end web framework

Copyright(C) 2016-2018 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <djohnson.m@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Subscription.SSE

Contents

Description

 
Synopsis

Subscription

sseSub :: FromJSON msg => MisoString -> (SSE msg -> action) -> Sub action Source #

Server-sent events Subscription

Types

data SSE message Source #

Server-sent events data

Constructors

SSEMessage message 
SSEClose 
SSEError 
Instances
Eq message => Eq (SSE message) Source # 
Instance details

Defined in Miso.Subscription.SSE

Methods

(==) :: SSE message -> SSE message -> Bool Source #

(/=) :: SSE message -> SSE message -> Bool Source #

Show message => Show (SSE message) Source # 
Instance details

Defined in Miso.Subscription.SSE

Methods

showsPrec :: Int -> SSE message -> ShowS Source #

show :: SSE message -> String Source #

showList :: [SSE message] -> ShowS Source #