socket-port
ErrorsCollection

socket-port

Synthesised documentation from type/IO/Socket/Async type/IO/Socket/Async/ListenSocket

From type/IO/Socket/Async

See Original text in context

method socket-port(--> Int)

Returns the port of the local end of this socket.

From type/IO/Socket/Async/ListenSocket

See Original text in context

method socket-port(--> Promise)

Returns a Promise that will be kept with an Int|/type/Int containing the port of the listening socket.