From 0f0409848e551453fa77f6bf24dc145b85678395 Mon Sep 17 00:00:00 2001 From: devamin Date: Fri, 20 Jan 2023 22:19:04 +0100 Subject: [PATCH] feat: add ignore queue doc --- docs/server.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/server.rst b/docs/server.rst index 8172572..19fb304 100644 --- a/docs/server.rst +++ b/docs/server.rst @@ -577,6 +577,16 @@ The RabbitMQ queue is configured through the mgr = socketio.AsyncAioPikaManager('amqp://') sio = socketio.AsyncServer(client_manager=mgr) +Ignore the queue +~~~~~~~~~~~~~~~~ + +With the message queue config, by default when emiting a message, +all server instances are recieving it and redistribute it, if the specific client is connected. +To ignore this queue you can use ignore_queue parameter. :: + + # ignore queue + sio.emit("my event", data={'foo':'bar'}, room='my room', ignore_queue=True) + Emitting from external processes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~