air-stream
subjects
stream
creates a new simple stream
const newStream = ;
ctx - (optional) creator fn context
socket
creates a stream from WebSocket
const newStream = ;
methods
at
subscribes to stream
const controller = source;
,where "controller" is a feedback function
call the controller without arguments to unsubscribe from the stream
;
and with arguments to feedback
;
map
Modifies the source stream message to message
source;
cut
Applies the transformation function to the data and emits the modified version if it is not undefined
source;
filter
Modifies the source stream by selecting messages from it according to the condition
source;
combine [static]
Combines several threads into one
;
withLatest
Combines several streams into one, but only triggers events from the source
source;
withHandler
The general method of changing the stream
source;
controller
Modifies the feedback
source;
Modifies the feedback for additional stream
source;
for the main source, the call remains unchanged
distinct
Compares each message with the last and emits it if it differs
- equals - {Function} (optional) - function for comparing values
source;
log
Logs messages from the stream
- adapter {Function} ( optional ) - formatting output
source
returns unchanged stream