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

x/wocket/mod.ts>WebSocketClient#to

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

Send a message to the server

Parameters

channelName: string
  • The channel name to send to
message: Record<string, unknown> | string | Uint8Array
  • The message to send to the channel