import { Server } from "https://deno.land/x/wocket@v1.0.0/src/server.ts";
Broadcast to other clients in a channel excluding the one passed in
Examples
Example 1
Example 1
interface SomeEvent { id: number }
server.on("some-event", (event: CustomEvent<SomeEvent>) => {
const { id } = event.detail
server.broadcast("some-channel", {
message: "Shh everybody! " + id + " won't be getting this message!"
}, id)
})