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

Properties

The action of the request

broadcast: boolean

Should the response be broadcast to other connected clients?

Operation parameters for the request

type: string

The type of Document being transacted

userId: string

The id of the requesting User