isomer.ui.clientmanager.basemanager module

Module clientmanager.basemanager

Basic client management functionality and component set up.

class ClientBaseManager(*args, **kwargs)[source]

Bases: isomer.component.ConfigurableComponent

Handles client connections and requests as well as client-outbound communication.

__init__(*args, **kwargs)[source]

Check for configuration issues and instantiate a component

broadcast(event)[source]

Broadcasts an event either to all users or clients or a given group, depending on event flag

channel = 'isomer-web'
connect(*args)[source]

Registers new sockets and their clients and allocates uuids

disconnect(sock)[source]

Handles socket disconnections

read(*args)[source]

Handles raw client requests and distributes them to the appropriate components

send(event)[source]

Sends a packet to an already known user or one of his clients by UUID