(self, event, data=None, namespace=None, callback=None)
return await self.client.emit(event, data=data,
                                      namespace=namespace or self.namespace,
                                      callback=callback)
Emit a custom event to the server.

        The only difference with the :func:`socketio.Client.emit` method is
        that when the ``namespace`` argument is not given the namespace
        associated with the class is used.

        Note: this method is a coroutine.
Emit a custom event to the server.
Emit a custom event to the server .
async def emit(self, event, data=None, namespace=None, callback=None):
        """Emit a custom event to the server.

        The only difference with the :func:`socketio.Client.emit` method is
        that when the ``namespace`` argument is not given the namespace
        associated with the class is used.

        Note: this method is a coroutine.
        """
        return await self.client.emit(event, data=data,
                                      namespace=namespace or self.namespace,
                                      callback=callback)
async def emit ( self , event , data = None , namespace = None , callback = None ) : return await self . client . emit ( event , data = data , namespace = namespace or self . namespace , callback = callback )