pytwitcherapi.chat.client.ChatServerStatus¶
-
class
pytwitcherapi.chat.client.ChatServerStatus(server, ip=None, port=None, status=None, errors=None, lag=None, description='', **kwargs)[source]¶ Bases:
objectUseful for comparing the performance of servers.
You can query the status of twitch chat servers. This class can easily wrap the result and sort the servers.
-
__init__(server, ip=None, port=None, status=None, errors=None, lag=None, description='', **kwargs)[source]¶ Initialize a chat server status.
Parameters: - server (
str) – the server address including port. E.g."0.0.0.0:80" - ip (
str) – the ip address - port (
int) – the port number - status (
str) – the server status. E.g."offline","online" - errors (
int) – the amount of errors in the last 5 min. - lag (
int) – the latency in ms - description (
str) – Wheter it is a main chat server or event server or group chat.
All other keyword arguments are ignored.
- server (
Methods
__init__(server[, ip, port, status, errors, ...])Initialize a chat server status. -