You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 13, 2021. It is now read-only.
Input streams are [Readable streams](https://nodejs.org/api/stream.html#stream_readable_streams).
64
63
65
64
Output streams are [Writable streams](https://nodejs.org/api/stream.html#stream_class_stream_readable).
66
65
67
66
The function **must** end the output streams when it is done emitting data or when an error occurs
68
67
(if the output streams are [`pipe`](https://nodejs.org/api/stream.html#stream_readable_pipe_destination_options)'d from
69
-
input streams, then this is automatically managed by this invoker).
68
+
input streams, then this is automatically managed).
70
69
71
70
## Message support
72
71
73
72
A message is an object that contains both headers and a payload.
74
73
Message headers are a map with case-insensitive keys and multiple string values.
75
74
76
-
Since JavaScript and Node have no built-in type for messages or headers, riff uses the [@projectriff/message](https://github.com/projectriff/node-message/) npm module. To use messages, functions should install the `@projectriff/message` package:
77
-
```bash
78
-
npm install --save @projectriff/message
79
-
```
75
+
Since JavaScript and Node have no built-in type for messages or headers, riff uses the [@projectriff/message](https://github.com/projectriff/node-message/) npm module.
80
76
81
77
By default, request-reply functions accept and produce payloads.
82
78
They can be configured instead to **receive** either the entire message or the headers only.
@@ -87,8 +83,6 @@ They can be configured instead to **receive** either the entire message or the h
0 commit comments