Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/socket_io/mod.ts>Server#send

Socket.IO server for Deno
Latest
method Server.prototype.send
import { Server } from "https://deno.land/x/socket_io@0.2.0/mod.ts";

Sends a message event to all clients.

This method mimics the WebSocket.send() method.

Examples

io.send("hello");

// this is equivalent to io.emit("message", "hello");

Parameters

...args: EventParams<EmitEvents, "message">

Returns

this

self