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

x/simple_ipc/src/ip.ts>listenIpRequest

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

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