reflex-dom-core-0.6.0.0: Functional Reactive Web Apps with Reflex
Safe HaskellNone
LanguageHaskell98

Reflex.Dom.WebSocket

Documentation

data WebSocketConfig t a Source #

Instances

Instances details
Reflex t => Default (WebSocketConfig t a) Source # 
Instance details

Defined in Reflex.Dom.WebSocket

Methods

def :: WebSocketConfig t a #

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 #