Module
Node.Websocket
- Package
- purescript-node-websocket
- Repository
- juspay/purescript-node-websocket
#On Source
class On (evt :: Event) obj callback out | evt -> callback obj out where
Members
on :: forall proxy. proxy evt -> obj -> callback -> out
Instances
On ConnectionMessage WSConnection (Either TextFrame BinaryFrame -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On ConnectionClose WSConnection (CloseReason -> CloseDescription -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On ConnectionError WSConnection (Error -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On ConnectionPing WSConnection (Buffer -> Eff (wss :: WSSERVER | e) Unit -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On ConnectionPong WSConnection (Buffer -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On RequestAccepted WSRequest (WSConnection -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On RequestRejected WSRequest (Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On Request WSServer (WSRequest -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On Connect WSServer (WSConnection -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
On Close WSServer (WSConnection -> CloseReason -> CloseDescription -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
#ConnectionMessage Source
data ConnectionMessage :: Event
Instances
On ConnectionMessage WSConnection (Either TextFrame BinaryFrame -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
#ConnectionClose Source
data ConnectionClose :: Event
Instances
On ConnectionClose WSConnection (CloseReason -> CloseDescription -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
#ConnectionError Source
data ConnectionError :: Event
Instances
On ConnectionError WSConnection (Error -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
#ConnectionPing Source
data ConnectionPing :: Event
Instances
#ConnectionPong Source
data ConnectionPong :: Event
Instances
On ConnectionPong WSConnection (Buffer -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)
#RequestAccepted Source
data RequestAccepted :: Event
Instances
On RequestAccepted WSRequest (WSConnection -> Eff (wss :: WSSERVER | e) Unit) (Eff (wss :: WSSERVER | e) Unit)