reflex-dom-core-0.8.1.3: Functional Reactive Web Apps with Reflex
Safe HaskellSafe-Inferred
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), 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), 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 #

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

webSocketConfig_close :: forall k (t :: k) a. Lens' (WebSocketConfig (t :: k) a) (Event t (Word, Text)) Source #

webSocketConfig_protocols :: forall k (t :: k) a. Lens' (WebSocketConfig (t :: k) a) [Text] Source #

webSocketConfig_reconnect :: forall k (t :: k) a. Lens' (WebSocketConfig (t :: k) a) Bool Source #

webSocketConfig_send :: forall k (t :: k) a. Lens' (WebSocketConfig (t :: k) a) (Event t [a]) Source #

webSocket_close :: forall k (t :: k) a. Lens' (RawWebSocket (t :: k) a) (Event t (Bool, Word, Text)) Source #

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

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

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