wsstat package¶
Submodules¶
wsstat.clients module¶
-
class
wsstat.clients.ConnectedWebsocketConnection(ws, identifier)[source]¶ Bases:
object-
message_count¶
-
-
class
wsstat.clients.WebsocketTestingClient(websocket_url, **kwargs)[source]¶ Bases:
objectSetting up the websocket calls the following callbacks that can be overridden to extend functinality. For an example see WebsocketTestingClientWithApiTokenHeader
def before_connect(self): def setup_websocket_connection(self, statedict): def get_identifier(self, statedict): def after_connect(self, statedict):
def before_recv(self, statedict): def after_recv(self, statedict, message):
-
messages_per_second¶
-
-
class
wsstat.clients.WebsocketTestingClientWithRandomApiTokenHeader(*args, **kwargs)[source]¶ Bases:
wsstat.clients.WebsocketTestingClientIntroduces a new parameter: header_name - used to specify the key to ‘extra_headers’ passed to websocket.connect
wsstat.gui module¶
-
class
wsstat.gui.LoggerWidget[source]¶ Bases:
object-
graph_title= ' Messages / Second | 3 Second window '¶
-
log_messages= []¶
-
timelogger= deque([], maxlen=30)¶
-
-
class
wsstat.gui.WSStatConsoleApplication(client)[source]¶ Bases:
object-
class
DummyScreen(input=<_io.TextIOWrapper name='<stdin>' mode='r' encoding='UTF-8'>, output=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]¶ Bases:
urwid.raw_display.Screen
-
class