websocket_demo/libs/aws.py
def delete_connection_id(connection_id, channel='general'):
    """Delete an item from DynamoDB which represents a client being connected"""
    table = get_table()

    conn_key = _get_channel_connections_key(channel)
    coll_name = _get_connection_column_name(connection_id)
    update_expr = 'REMOVE {}'.format(coll_name)

    table.update_item(
        Key=conn_key,
        UpdateExpression=update_expr,
    )
Delete an item from DynamoDB which represents a client being connected
Delete an item from DynamoDB which represents a client being connected
Delete an item from DynamoDB which represents a client being connected
def delete_connection_id(connection_id, channel='general'):
    table = get_table()
    conn_key = _get_channel_connections_key(channel)
    coll_name = _get_connection_column_name(connection_id)
    update_expr = 'REMOVE {}'.format(coll_name)
    table.update_item(
        Key=conn_key,
        UpdateExpression=update_expr,
    )
def delete_connection_id ( connection_id , channel = 'general' ) : table = get_table ( ) conn_key = _get_channel_connections_key ( channel ) coll_name = _get_connection_column_name ( connection_id ) update_expr = 'REMOVE {}' . format ( coll_name ) table . update_item ( Key = conn_key , UpdateExpression = update_expr , )
Delete an item from DynamoDB which represents a client being connected
Delete an item from DynamoDB which represents a client being connected
"""Delete an item from DynamoDB which represents a client being connected"""
connection_id
channel