Relates to pinojs/pino#1930
Relates to pinojs/pino-abstract-transport#90
Adds the ability to post a message in the worker by emitting a message event on the stream. This isn't strictly required for the feature, but considering the intention to make this.worker private. I didn't think it would be best to call stream.worker.postMessage directly.
PR 1 of 3 for pinojs/pino#1925
Relates to pinojs/pino#1930 Relates to pinojs/pino-abstract-transport#90
Adds the ability to post a message in the worker by emitting a
message
event on the stream. This isn't strictly required for the feature, but considering the intention to makethis.worker
private. I didn't think it would be best to callstream.worker.postMessage
directly.