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

x/simple_ipc/mod.ts>listenUdsBroadcast

A simple and lightweight IPC module for Deno.
Latest
function listenUdsBroadcast
import { listenUdsBroadcast } 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, void>

Handler function that is called each time data is received from the remote client.