miso-0.16.0.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 
Show message => Show (SSE message) Source