Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pup/lib/core/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-19/lib/core/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