Module

Node.Websocket.Connection

Package
purescript-node-websocket
Repository
juspay/purescript-node-websocket

#closeWithReason Source

#close Source

close :: forall e. WSConnection -> Eff (wss :: WSSERVER | e) Unit

#sendUTF Source

sendUTF :: forall e. WSConnection -> String -> Eff (wss :: WSSERVER | e) Unit

#sendBytes Source

sendBytes :: forall e. WSConnection -> Buffer -> Eff (wss :: WSSERVER | e) Unit

#sendMessage Source

#ping Source

ping :: forall e. WSConnection -> Buffer -> Eff (wss :: WSSERVER | e) Unit

#pong Source

pong :: forall e. WSConnection -> Buffer -> Eff (wss :: WSSERVER | e) Unit

#MessageCallback Source

#onMessage Source

onMessage :: forall e. WSConnection -> MessageCallback e -> Eff (wss :: WSSERVER | e) Unit

#ErrorCallback Source

type ErrorCallback e = Error -> Eff (wss :: WSSERVER | e) Unit

#onError Source

onError :: forall e. WSConnection -> ErrorCallback e -> Eff (wss :: WSSERVER | e) Unit

#CloseCallback Source

#onClose Source

onClose :: forall e. WSConnection -> CloseCallback e -> Eff (wss :: WSSERVER | e) Unit

#PingCallback Source

type PingCallback e = Buffer -> Eff (wss :: WSSERVER | e) Unit -> Eff (wss :: WSSERVER | e) Unit

#onPing Source

onPing :: forall e. WSConnection -> PingCallback e -> Eff (wss :: WSSERVER | e) Unit

#PongCallback Source

type PongCallback e = Buffer -> Eff (wss :: WSSERVER | e) Unit

#onPong Source

onPong :: forall e. WSConnection -> PongCallback e -> Eff (wss :: WSSERVER | e) Unit