listen

open fun listen(port: Int)

Bind the server to a given port.


abstract fun listen(port: Int, callback: Value? = null)

Bind the server to a given port, optionally invoking a callback when the socket is ready.