Module

WebSocket.Class

Package
purescript-websocket-moderate
Repository
athanclark/purescript-websocket-moderate

#newWebSocket Source

newWebSocket :: forall receive send stM m. EncodeJson send => DecodeJson receive => MonadBaseControl Aff m stM => SingletonFunctor stM => String -> Array String -> WebSocketsApp m receive send -> m Unit

#newWebSocketString Source

#newWebSocketBinary Source

newWebSocketBinary :: forall binaryType receive send stM m. WebSocketBinary send => WebSocketBinary receive => BinaryType receive binaryType => IsSymbol binaryType => MonadBaseControl Aff m stM => SingletonFunctor stM => String -> Array String -> WebSocketsApp m receive send -> m Unit

#newWebSocketBoth Source

newWebSocketBoth :: forall binaryType receive send stM m. WebSocketBinary send => WebSocketBinary receive => BinaryType receive binaryType => IsSymbol binaryType => MonadBaseControl Aff m stM => SingletonFunctor stM => String -> Array String -> WebSocketsApp m String String -> WebSocketsApp m receive send -> m Unit