Piping Patterns: Multiplexing and Demultiplexing Object Streams

Learn implementation of client-side multiplexing and server-side demultiplexing with the help of a demo application.

Client side—multiplexing

Let’s start to build our application from the client side by creating a client.js named module. This represents the part of the application that’s responsible for starting a child process (child_process) and multiplexing its streams.
So, let’s start by defining the module. First, we need some dependencies.

Get hands-on with 1200+ tech skills courses.