Broadcasting
Broadcast to all connected clients
server.getBroadcastOperations()
.sendEvent("news", "Hello everyone!");Broadcasting within a namespace
server.getNamespace("/chat")
.getBroadcastOperations()
.sendEvent("globalMessage", payload);Last updated
Was this helpful?