(self, event, data, namespace, room=None, skip_sid=None,
             callback=None, **kwargs)
Emit a message to a single client, a room, or all the clients
        connected to the namespace.
Emit a message to a single client, a room, or all the clients
        connected to the namespace.
Emit a message to a single client a room or all the clients connected to the namespace .
def emit(self, event, data, namespace, room=None, skip_sid=None,
             callback=None, **kwargs):
        """Emit a message to a single client, a room, or all the clients
        connected to the namespace."""
        if namespace not in self.rooms:
            return
        if not isinstance(skip_sid, list):
            skip_sid = [skip_sid]
        for sid, eio_sid in self.get_participants(namespace, room):
            if sid not in skip_sid:
                if callback is not None:
                    id = self._generate_ack_id(sid, callback)
                else:
                    id = None
                self.server._emit_internal(eio_sid, event, data, namespace, id)
def emit ( self , event , data , namespace , room = None , skip_sid = None , callback = None , * * kwargs ) : if namespace not in self . rooms : return if not isinstance ( skip_sid , list ) : skip_sid = [ skip_sid ] for sid , eio_sid in self . get_participants ( namespace , room ) : if sid not in skip_sid : if callback is not None : id = self . _generate_ack_id ( sid , callback ) else : id = None self . server . _emit_internal ( eio_sid , event , data , namespace , id )