Safe Haskell | None |
---|---|
Language | Haskell2010 |
- js_newEventSource :: JSString -> Nullable Dictionary -> IO EventSource
- newEventSource :: (MonadIO m, ToJSString url, IsDictionary eventSourceInit) => url -> Maybe eventSourceInit -> m EventSource
- js_close :: EventSource -> IO ()
- close :: MonadIO 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
- js_getUrl :: EventSource -> IO JSString
- getUrl :: (MonadIO m, FromJSString result) => EventSource -> m result
- js_getWithCredentials :: EventSource -> IO Bool
- getWithCredentials :: MonadIO m => EventSource -> m Bool
- js_getReadyState :: EventSource -> IO Word
- getReadyState :: MonadIO m => EventSource -> m Word
- open :: EventName EventSource Event
- message :: EventName EventSource MessageEvent
- error :: EventName EventSource UIEvent
- newtype EventSource = EventSource {}
- gTypeEventSource :: GType
Documentation
js_newEventSource :: JSString -> Nullable Dictionary -> IO EventSource Source #
newEventSource :: (MonadIO m, ToJSString url, IsDictionary eventSourceInit) => url -> Maybe eventSourceInit -> m EventSource Source #
js_close :: EventSource -> IO () Source #
close :: MonadIO m => EventSource -> m () Source #
pattern CONNECTING :: forall a. (Num a, Eq a) => a Source #
getUrl :: (MonadIO m, FromJSString result) => EventSource -> m result Source #
getWithCredentials :: MonadIO m => EventSource -> m Bool Source #
js_getReadyState :: EventSource -> IO Word Source #
getReadyState :: MonadIO m => EventSource -> m Word Source #
newtype EventSource Source #
Functions for this inteface are in GHCJS.DOM.EventSource. Base interface functions are in: