Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/wocket/src/types.ts>OnChannelCallback

A WebSocket library for Deno
Latest
type alias OnChannelCallback
import { type OnChannelCallback } from "https://deno.land/x/wocket@v1.0.0/src/types.ts";

A callback to execute when a Channel object receives events.

Type Parameters

CustomProps
ChannelName extends string
definition: ((event: CustomEvent<{ packet: CustomProps; } & ReservedChannelProps<ChannelName> & AlwaysProps>) => void)