Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/lib/common/ipc.ts>FileIPC

Universal process manager built in Deno
Go to Latest
class FileIPC
import { FileIPC } from "https://deno.land/x/pup@1.0.0-alpha-32/lib/common/ipc.ts";

Constructors

new
FileIPC(filePath: string, staleMessageLimitMs?: number)

Properties

private
filePath: string
private
staleMessageLimitMs: number
MAX_DATA_LENGTH: number

Methods

close(): Promise<void>

Close the file-based IPC and remove the IPC file.

Receive data from the file-based IPC.

Will throw away stale messages (older than staleMessageLimitMs)

sendData(data: string): Promise<void>

Send data using the file-based IPC.

Will append to file in this.filePath if it exists, otherwise create a new one