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

x/simple_ipc/src/ip.ts>listenIpBroadcast

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

The port range it can listen on is 49152 ~ 65535 (ephemeral ports).

Parameters

ch: number

Listen port number from 49152 ~ 65535.

onMessage: MessageHandler<T, void>

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