Module

Node.Net.Server

Package
purescript-node-net
Repository
purescript-node/purescript-node-net

#toEventEmitter Source

toEventEmitter :: forall connectionType. Server connectionType -> EventEmitter

#createTcpServer' Source

createTcpServer' :: forall r trash. Union r trash (NewServerOptions ()) => Record r -> Effect (Server TCP)

#createIpcServer' Source

createIpcServer' :: forall r trash. Union r trash (NewServerOptions ()) => Record r -> Effect (Server IPC)

#closeH Source

closeH :: forall connectionType. EventHandle0 (Server connectionType)

#connectionH Source

connectionH :: forall connectionType. EventHandle1 (Server connectionType) (Socket connectionType)

#errorH Source

errorH :: forall connectionType. EventHandle1 (Server connectionType) Error

#listeningH Source

listeningH :: forall connectionType. EventHandle0 (Server connectionType)

#dropHandleTcp Source

dropHandleTcp :: EventHandle (Server TCP) ({ localAddress :: String, localFamily :: IpFamily, localPort :: Int, remoteAddress :: String, remoteFamily :: IpFamily, remotePort :: Int } -> Effect Unit) (EffectFn1 { localAddress :: String, localFamily :: String, localPort :: Int, remoteAddress :: String, remoteFamily :: String, remotePort :: Int } Unit)

#addressTcp Source

addressTcp :: Server TCP -> Effect (Maybe { address :: String, family :: IpFamily, port :: Int })

#close Source

close :: forall connectionType. Server connectionType -> Effect Unit

#getConnections Source

getConnections :: forall connectionType. Server connectionType -> (Error -> Int -> Effect Unit) -> Effect Unit

#listenTcp Source

listenTcp :: forall r trash. Union r trash (ListenTcpOptions ()) => Server TCP -> Record r -> Effect Unit

#listenIpc Source

listenIpc :: forall r trash. Union r trash (ListenIpcOptions ()) => (Server IPC) -> Record r -> Effect Unit

#listening Source

listening :: forall connectionType. Server connectionType -> Effect Boolean

#maxConnections Source

maxConnections :: forall connectionType. Server connectionType -> Effect Int

#ref Source

ref :: forall connectionType. Server connectionType -> Effect Unit

#unref Source

unref :: forall connectionType. Server connectionType -> Effect Unit