(self, eio_sid, namespace, id, data)
Handle an incoming client event.
Handle an incoming client event.
Handle an incoming client event .
async def _handle_event(self, eio_sid, namespace, id, data):
        """Handle an incoming client event."""
        namespace = namespace or '/'
        sid = self.manager.sid_from_eio_sid(eio_sid, namespace)
        self.logger.info('received event "%s" from %s [%s]', data[0], sid,
                         namespace)
        if not self.manager.is_connected(sid, namespace):
            self.logger.warning('%s is not connected to namespace %s',
                                sid, namespace)
            return
        if self.async_handlers:
            self.start_background_task(self._handle_event_internal, self, sid,
                                       eio_sid, data, namespace, id)
        else:
            await self._handle_event_internal(self, sid, eio_sid, data,
                                              namespace, id)
async def _handle_event ( self , eio_sid , namespace , id , data ) : namespace = namespace or '/' sid = self . manager . sid_from_eio_sid ( eio_sid , namespace ) self . logger . info ( 'received event "%s" from %s [%s]' , data [ 0 ] , sid , namespace ) if not self . manager . is_connected ( sid , namespace ) : self . logger . warning ( '%s is not connected to namespace %s' , sid , namespace ) return if self . async_handlers : self . start_background_task ( self . _handle_event_internal , self , sid , eio_sid , data , namespace , id ) else : await self . _handle_event_internal ( self , sid , eio_sid , data , namespace , id )