(read-stream input-stream)(read-stream input-stream handler-fn)Accepts an input stream and, optionally, a handler function that takes one argument, the message content. This function will block while it reads messages wrapped in Minimum Low Level Protocol (MLLP) from the input stream, unwraps them and provides the message to the provided handler function (if provided) and then waits for the next message. If no handler function is provided them this function blocks until a message is read and then returns that message. An exception is thrown on incomplete messages.
Accepts an input stream and, optionally, a handler function that takes one argument, the message content. This function will block while it reads messages wrapped in Minimum Low Level Protocol (MLLP) from the input stream, unwraps them and provides the message to the provided handler function (if provided) and then waits for the next message. If no handler function is provided them this function blocks until a message is read and then returns that message. An exception is thrown on incomplete messages.
(write-stream output-stream message)Accepts an output stream and a string with the message to be written. The message will be wrapped in a Minimum Low Level Protocol (MLLP) envelope and then written to the output stream.
Accepts an output stream and a string with the message to be written. The message will be wrapped in a Minimum Low Level Protocol (MLLP) envelope and then written to the output stream.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |