Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- data WebSocket
- data WebSocketRequest = WebSocketRequest {}
- data ReadyState
- = Connecting
- | Open
- | Closing
- | Closed
- data BinaryType
- = Blob
- | ArrayBuffer
- connect :: WebSocketRequest -> IO WebSocket
- close :: Maybe Int -> Maybe JSString -> WebSocket -> IO ()
- send :: JSString -> WebSocket -> IO ()
- sendArrayBuffer :: ArrayBuffer -> WebSocket -> IO ()
- sendBlob :: Blob -> WebSocket -> IO ()
- getBufferedAmount :: WebSocket -> IO Int
- getExtensions :: WebSocket -> IO JSString
- getProtocol :: WebSocket -> IO JSString
- getReadyState :: WebSocket -> IO ReadyState
- getBinaryType :: WebSocket -> IO BinaryType
- setBinaryType :: BinaryType -> WebSocket -> IO ()
- getUrl :: WebSocket -> JSString
Documentation
data ReadyState Source #
Instances
data BinaryType Source #
Instances
close :: Maybe Int -> Maybe JSString -> WebSocket -> IO () Source #
close a websocket and release the callbacks
sendArrayBuffer :: ArrayBuffer -> WebSocket -> IO () Source #
getReadyState :: WebSocket -> IO ReadyState Source #
getBinaryType :: WebSocket -> IO BinaryType Source #
setBinaryType :: BinaryType -> WebSocket -> IO () Source #