socket_connection

class src.socket_connection.SocketConnection(app_id)

Bases: EventTarget

Wrapper around web sockets that dispatches events

connect(url)

Connects to the given websocket url

connect_from_settings(settings_url)

Connects based on a settings file

on_message_event(ev)

Dispatches a custom event on socket messages

send(data)

Sends the given data through the socket