Run the JSON RPC dispatch loop until end of file is reached on
Stream.
Arguments:
Stream
- is stream pair (see stream_pair/2). Normally, the stream
should use utf8 encoding. If the stream is a binary stream, it
will be processed as if utf8 encoding is enabled. If it is a text
stream the encoding of the stream is respected.