(self, eio_sid, event, data, namespace=None, id=None)
Send a message to a client.
Send a message to a client.
Send a message to a client .
def _emit_internal(self, eio_sid, event, data, namespace=None, id=None):
        """Send a message to a client."""
        # tuples are expanded to multiple arguments, everything else is sent
        # as a single argument
        if isinstance(data, tuple):
            data = list(data)
        elif data is not None:
            data = [data]
        else:
            data = []
        self._send_packet(eio_sid, self.packet_class(
            packet.EVENT, namespace=namespace, data=[event] + data, id=id))
def _emit_internal ( self , eio_sid , event , data , namespace = None , id = None ) : # tuples are expanded to multiple arguments, everything else is sent # as a single argument if isinstance ( data , tuple ) : data = list ( data ) elif data is not None : data = [ data ] else : data = [ ] self . _send_packet ( eio_sid , self . packet_class ( packet . EVENT , namespace = namespace , data = [ event ] + data , id = id ) )