readLine

abstract fun readLine(): String?

Reads a JSON message from the socket, blocking until a message is received or returning null if the socket closes. Might not be supported by the implementation.

Throws

if an I/O error occurs during socket communication

the communicator doesn't support this operation (can happen if the communicator closes connections after a request is handled).