Skip to main content
Module

x/wocket/mod.ts

A WebSocket library for Deno
Latest
import * as wocket from "https://deno.land/x/wocket@v1.0.0/mod.ts";

Classes

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

This class represents a single end-user client. It contains information about their connection ID (when they first connected to the server), their web socket connection, and more.

A class to create a websocket server, handling clients connecting, and being able to handle messages from them, and send messages to them

A helper class built on top of the native WebSocket, to make it easier to send messages to channels, and listen for messages on channels.