src.clients package¶
Submodules¶
src.clients.models module¶
-
class
src.clients.models.
Client
¶ Bases:
object
Handles connections to a clients websocket connections
-
async
close
()¶ Will close all the clients websocket connections
-
dict_repr
() → dict¶ Returns a the number of connections the client has
-
async
receive
(topic, bytes)¶ Asynchronously transmit data to the clients websocket connections
Will add the data to the buffer and send it when the buffer becomes large enough
- Parameters
topic – the topic the data received from
bytes – the data received as bytes
-
async
src.clients.views module¶
-
async
src.clients.views.
client
(request: aiohttp.web_request.Request)¶ Show info about the client sending the request
-
src.clients.views.
dumps
(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=<function make_serializable>, sort_keys=False, **kw)¶ A version of json.dumps that uses make serializable recursively to make objects serializable