Module
Node.Websocket.Connection  
- Package
 - purescript-node-websocket
 - Repository
 - juspay/purescript-node-websocket
 
#protocol Source
protocol :: WSConnection -> String#remoteAddress Source
remoteAddress :: WSConnection -> String#connected Source
connected :: WSConnection -> Boolean#closeWithReason Source
closeWithReason :: forall e. WSConnection -> CloseReason -> CloseDescription -> Eff (wss :: WSSERVER | e) Unit#drop Source
drop :: forall e. WSConnection -> CloseReason -> CloseDescription -> Eff (wss :: WSSERVER | e) Unit
#sendMessage Source
sendMessage :: forall e. WSConnection -> Either TextFrame BinaryFrame -> Eff (wss :: WSSERVER | e) Unit#MessageCallback Source
type MessageCallback e = Either TextFrame BinaryFrame -> Eff (wss :: WSSERVER | e) Unit#onMessage Source
onMessage :: forall e. WSConnection -> MessageCallback e -> Eff (wss :: WSSERVER | e) Unit#onError Source
onError :: forall e. WSConnection -> ErrorCallback e -> Eff (wss :: WSSERVER | e) Unit#CloseCallback Source
type CloseCallback e = CloseReason -> CloseDescription -> Eff (wss :: WSSERVER | e) Unit#onClose Source
onClose :: forall e. WSConnection -> CloseCallback e -> Eff (wss :: WSSERVER | e) Unit#onPing Source
onPing :: forall e. WSConnection -> PingCallback e -> Eff (wss :: WSSERVER | e) Unit#onPong Source
onPong :: forall e. WSConnection -> PongCallback e -> Eff (wss :: WSSERVER | e) Unit