interface DocumentSocketRequest {
    type: string;
    action: DatabaseAction;
    operation: DatabaseOperation;
    userId: string;
    broadcast: boolean;
}

Properties

type: string

The type of Document being transacted

The action of the request

Operation parameters for the request

userId: string

The id of the requesting User

broadcast: boolean

Should the response be broadcast to other connected clients?