fastify-socket.io icon indicating copy to clipboard operation
fastify-socket.io copied to clipboard

broadcast flag

Open Zhet1 opened this issue 3 years ago • 1 comments

how can i access to the broadcast flag of the socket?

Zhet1 avatar May 17 '22 02:05 Zhet1

Hi @Zhet1 the plugin will create a decorator which is an instance of socket.io, so you can broadcast exactly as described https://socket.io/docs/v4/server-api/#flag-broadcast

alemagio avatar Jun 11 '22 10:06 alemagio