def peer(client: Client) -> _WSRequestContextManager: """ Connect to peer websocket :param client: Client to connect to the api :return: """ return client.connect_ws(MODULE + '/peer')
def block(client: Client) -> _WSRequestContextManager: """ Connect to block websocket :param client: Client to connect to the api :return: """ return client.connect_ws(MODULE + '/block')