Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sockets/src/packet.ts>Packet

A WebSocket library for Deno.
Latest
class Packet
import { Packet } from "https://deno.land/x/sockets@v0.5.0/src/packet.ts";

Constructors

new
Packet(
to: string,
message?: unknown,
)

Construct an object of this class.

Properties

A property to hold the sender.

optional
message: unknown

A property to hold the message this packet contains.

to: string

A property to hold the address this packet is going to.