Skip to main content
class SonoClient
import { SonoClient } from "https://deno.land/x/sono@v1.1/src/sonoClient.js";

Constructors

new
SonoClient(url)

Methods

broadcast(message, event?)

Sends out packet to all clients except for the client who sent it

changeChannel(targetChannel)
directmessage(
message,
client,
event?,
)

Sends a direct message to a specified client

grab(request, event?)

Provides list of clients who are connected to the server

message(message, event?)

Send message to all clients including self

on(eventParam, callback)
onconnection(callback)
trigger(eventName)