reflex-dom-core-0.4: Functional Reactive Web Apps with Reflex

Safe HaskellNone
LanguageHaskell98

Reflex.Dom.WebSocket

Documentation

webSocket :: (MonadJSM m, MonadJSM (Performable m), HasJSContext m, PerformEvent t m, TriggerEvent t m, PostBuild t m, IsWebSocketMessage a) => Text -> WebSocketConfig t a -> m (WebSocket t) Source #

webSocket' :: (MonadJSM m, MonadJSM (Performable m), HasJSContext m, PerformEvent t m, TriggerEvent t m, PostBuild t m, IsWebSocketMessage a) => Text -> WebSocketConfig t a -> (Either ByteString JSVal -> JSM b) -> m (RawWebSocket t b) Source #

forkJSM :: JSM () -> JSM () Source #

webSocket_error :: forall t a. Lens' (RawWebSocket t a) (Event t ()) Source #

webSocket_open :: forall t a. Lens' (RawWebSocket t a) (Event t ()) Source #

webSocket_recv :: forall t a. Lens' (RawWebSocket t a) (Event t a) Source #