miso-1.8.5.0: A tasty Haskell front-end 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 HaskellSafe-Inferred
LanguageHaskell2010

Miso.Subscription.SSE

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

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

Defined in Miso.Subscription.SSE

Methods

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

show :: SSE message -> String #

showList :: [SSE message] -> ShowS #

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

Defined in Miso.Subscription.SSE

Methods

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

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