import { WatchService } from "https://deno.land/x/frugal@0.5.0/packages/core/watch/WatchService.ts";
Class handeling the message communication with a parent process (the "other
side" of a WatchChild
). On construction, this class replace the
console.log
to an event dispatch (to have the parent process pipe those log
to its stdout), and immediatly sends a ready
message.
Methods
addEventListener<EVENT extends EventNames<EventMap<IN_MESSAGE>>>(): () => void
Listen to messages from the parent process (as json piped in stdin)