Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_ipc/mod.ts>listenUdsRequest

A simple and lightweight IPC module for Deno.
Latest
function listenUdsRequest
import { listenUdsRequest } from "https://deno.land/x/simple_ipc@v0.1.3/mod.ts";

The path to the socket file will be /tmp/(ch).sock. /tmp is C:/Windows/Temp if Windows.

Parameters

ch: string

Name of the socket file. Valid character patterns are [a-zA-Z0-9_]+.

onMessage: MessageHandler<T, U>

Handler function that is called each time data is received from the remote client, Return value is the response data.