miso-0.21.1.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 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 # 

Methods

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

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

Show message => Show (SSE message) Source # 

Methods

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

show :: SSE message -> String #

showList :: [SSE message] -> ShowS #