Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newEventSource :: (MonadDOM m, ToJSString url) => url -> Maybe EventSourceInit -> m EventSource
- close :: MonadDOM m => EventSource -> m ()
- pattern CONNECTING :: forall a. (Num a, Eq a) => a
- pattern OPEN :: forall a. (Num a, Eq a) => a
- pattern CLOSED :: forall a. (Num a, Eq a) => a
- getUrl :: (MonadDOM m, FromJSString result) => EventSource -> m result
- getWithCredentials :: MonadDOM m => EventSource -> m Bool
- getReadyState :: MonadDOM m => EventSource -> m Word
- open :: EventName EventSource Event
- message :: EventName EventSource MessageEvent
- error :: EventName EventSource UIEvent
- newtype EventSource = EventSource {}
- gTypeEventSource :: JSM GType
Documentation
newEventSource :: (MonadDOM m, ToJSString url) => url -> Maybe EventSourceInit -> m EventSource Source #
close :: MonadDOM m => EventSource -> m () Source #
pattern CONNECTING :: forall a. (Num a, Eq a) => a Source #
getUrl :: (MonadDOM m, FromJSString result) => EventSource -> m result Source #
getWithCredentials :: MonadDOM m => EventSource -> m Bool Source #
getReadyState :: MonadDOM m => EventSource -> m Word Source #
newtype EventSource Source #
Functions for this inteface are in JSDOM.EventSource. Base interface functions are in: