Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newMessageEvent :: (MonadDOM m, ToJSString type') => type' -> Maybe MessageEventInit -> m MessageEvent
- initMessageEvent :: (MonadDOM m, ToJSString type', ToJSVal data', ToJSString originArg, ToJSString lastEventId, IsMessageEventSource source) => MessageEvent -> type' -> Bool -> Bool -> Maybe data' -> Maybe originArg -> Maybe lastEventId -> Maybe source -> [MessagePort] -> m ()
- getOrigin :: (MonadDOM m, FromJSString result) => MessageEvent -> m result
- getLastEventId :: (MonadDOM m, FromJSString result) => MessageEvent -> m result
- getSource :: MonadDOM m => MessageEvent -> m (Maybe EventTarget)
- getSourceUnsafe :: (MonadDOM m, HasCallStack) => MessageEvent -> m EventTarget
- getSourceUnchecked :: MonadDOM m => MessageEvent -> m EventTarget
- getData :: MonadDOM m => MessageEvent -> m JSVal
- getPorts :: MonadDOM m => MessageEvent -> m [MessagePort]
- newtype MessageEvent = MessageEvent {}
- gTypeMessageEvent :: JSM GType
Documentation
newMessageEvent :: (MonadDOM m, ToJSString type') => type' -> Maybe MessageEventInit -> m MessageEvent Source #
initMessageEvent :: (MonadDOM m, ToJSString type', ToJSVal data', ToJSString originArg, ToJSString lastEventId, IsMessageEventSource source) => MessageEvent -> type' -> Bool -> Bool -> Maybe data' -> Maybe originArg -> Maybe lastEventId -> Maybe source -> [MessagePort] -> m () Source #
getOrigin :: (MonadDOM m, FromJSString result) => MessageEvent -> m result Source #
getLastEventId :: (MonadDOM m, FromJSString result) => MessageEvent -> m result Source #
getSource :: MonadDOM m => MessageEvent -> m (Maybe EventTarget) Source #
getSourceUnsafe :: (MonadDOM m, HasCallStack) => MessageEvent -> m EventTarget Source #
getSourceUnchecked :: MonadDOM m => MessageEvent -> m EventTarget Source #
getPorts :: MonadDOM m => MessageEvent -> m [MessagePort] Source #
newtype MessageEvent Source #
Functions for this inteface are in JSDOM.MessageEvent. Base interface functions are in: