src.dcss.connection.game_connection

Module Contents

Classes

GameConnection

class src.dcss.connection.game_connection.GameConnection(config=config.WebserverConfig())
static json_encode(value)
async consumer(message)
async only_receive_ws()
start()
async connect_webserver2()
async login_webserver()
async send_pong()
async load_game_on_webserver()
async get_all_server_messages()
async send_and_receive(message)
async send_and_receive_ws(message)
async send_and_receive_command_ws(command)
async connect_webserver()
async connect_ws()
connect()
ready_to_connect()
close()
_send_message(data)
_control_input(c)
_send_input(input_str)
_read_msg()
_handle_msgs(msgs)
get_gamestate()
_read_msgs()
_send_command(command)
async _send_command_ws(command)
send_and_receive_dict(input_dict)
async send_and_receive_dict_ws(input_dict)
send_and_receive_str(input_str)
send_and_receive_command(command, sleep_secs=0.05)