ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.Web.WebSocket

Synopsis

Documentation

data WebSocketRequest Source #

Constructors

WebSocketRequest 

Fields

data ReadyState Source #

Constructors

Connecting 
Open 
Closing 
Closed 
Instances
Enum ReadyState Source # 
Instance details

Defined in JavaScript.Web.WebSocket

Eq ReadyState Source # 
Instance details

Defined in JavaScript.Web.WebSocket

Data ReadyState Source # 
Instance details

Defined in JavaScript.Web.WebSocket

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ReadyState -> c ReadyState

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ReadyState

toConstr :: ReadyState -> Constr

dataTypeOf :: ReadyState -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ReadyState)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ReadyState)

gmapT :: (forall b. Data b => b -> b) -> ReadyState -> ReadyState

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ReadyState -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ReadyState -> r

gmapQ :: (forall d. Data d => d -> u) -> ReadyState -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> ReadyState -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ReadyState -> m ReadyState

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ReadyState -> m ReadyState

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ReadyState -> m ReadyState

Ord ReadyState Source # 
Instance details

Defined in JavaScript.Web.WebSocket

Show ReadyState Source # 
Instance details

Defined in JavaScript.Web.WebSocket

data BinaryType Source #

Constructors

Blob 
ArrayBuffer 
Instances
Enum BinaryType Source # 
Instance details

Defined in JavaScript.Web.WebSocket

Eq BinaryType Source # 
Instance details

Defined in JavaScript.Web.WebSocket

Data BinaryType Source # 
Instance details

Defined in JavaScript.Web.WebSocket

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BinaryType -> c BinaryType

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BinaryType

toConstr :: BinaryType -> Constr

dataTypeOf :: BinaryType -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BinaryType)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BinaryType)

gmapT :: (forall b. Data b => b -> b) -> BinaryType -> BinaryType

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BinaryType -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BinaryType -> r

gmapQ :: (forall d. Data d => d -> u) -> BinaryType -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> BinaryType -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BinaryType -> m BinaryType

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BinaryType -> m BinaryType

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BinaryType -> m BinaryType

Ord BinaryType Source # 
Instance details

Defined in JavaScript.Web.WebSocket

Show BinaryType Source # 
Instance details

Defined in JavaScript.Web.WebSocket

connect :: WebSocketRequest -> IO WebSocket Source #

create a WebSocket

close :: Maybe Int -> Maybe JSString -> WebSocket -> IO () Source #

close a websocket and release the callbacks