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

x/wocket/mod.ts>Channel

A WebSocket library for Deno
Latest
class Channel
import { Channel } from "https://deno.land/x/wocket@v1.0.0/mod.ts";

This class represents channels, also known as "rooms" to some, and is responsible for the following:

- Connecting clients
- Disconnecting clients

Constructors

new
Channel(name: string, cb: Cb)

Construct an object of this class.

Properties

callback: Cb

The callback to execute when a client connects to this channel.

name: string