Interface BouncePacket

Sent by the client to be broadcast from the server to all connected clients that match any one of the filter arguments.

Useful for commonly implemented features such as DeathLink.

interface BouncePacket {
    cmd: "Bounce";
    data: JSONRecord;
    games?: string[];
    slots?: number[];
    tags?: string[];
}

Properties

cmd

Any data you want to send.

games?: string[]

Optional. Games that should receive this message.

slots?: number[]

Optional. Player ids that should receive this message.

tags?: string[]

Optional. Client tags that should receive this message.