code: 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)
docs: 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.