Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method Namespace.prototype.send
import { Namespace } from "https://deno.land/x/socket_io@0.2.0/packages/socket.io/lib/namespace.ts";

Sends a message event to all clients.

This method mimics the WebSocket.send() method.

Examples

const myNamespace = io.of("/my-namespace");

myNamespace.send("hello");

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

Parameters

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

Returns

this

self