Safe Haskell | None |
---|---|
Language | Haskell98 |
- data WebSocket
- data WebSocketRequest = WebSocketRequest {}
- data ReadyState
- 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
- getUrl :: WebSocket -> JSString
Documentation
data ReadyState Source
data BinaryType Source
connect :: WebSocketRequest -> IO WebSocket Source
create a WebSocket
close :: Maybe Int -> Maybe JSString -> WebSocket -> IO () Source
close a websocket and release the callbacks
sendArrayBuffer :: ArrayBuffer -> WebSocket -> IO () Source
getBufferedAmount :: WebSocket -> IO Int Source
getExtensions :: WebSocket -> IO JSString Source
getProtocol :: WebSocket -> IO JSString Source
getReadyState :: WebSocket -> IO ReadyState Source
getBinaryType :: WebSocket -> IO BinaryType Source