Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
switchMap((action: actions.SendInputReply) => {
const state = state$.value;
const kernel = selectors.kernelByContentRef(state, {
contentRef: action.payload.contentRef
});
if (kernel) {
const reply = inputReply({ value: action.payload.value });
kernel.channels.next(reply);
}
return empty();
})
);