port

expect val port: Int?(source)

Get the listener's port. This method will return null except between the time the listener is started and the time it is stopped.

When a listener is configured with the port number 0, the return value from this function will give the port at which the listener is actually listening.

Return

the listener's port, or null.

actual val port: Int?(source)
actual val port: Int?(source)