@anticrm/rpc Package
Classes #
Class | Description |
---|---|
Request_2 |
Functions #
Function | Description |
---|---|
readRequest(request) | |
readResponse(response) | |
serialize(object) | |
toStatus(response) |
Interfaces #
Interface | Description |
---|---|
FindResponse | |
Response_2 | Response object define a server response on transaction request.Also used to inform other clients about operations being performed by server. |
RpcError |
Variables #
Variable | Description |
---|---|
RPC_CALL_FIND | |
RPC_CALL_FINDONE | |
RPC_CALL_GEN_REF_ID | |
RPC_CALL_LOAD_DOMAIN | |
RPC_CALL_TX |
Type Aliases #
Type Alias | Description |
---|---|
ReqId |
Functions #
readRequest #
Signature:
export declare function readRequest<P extends any[]>(request: string): Request<P>;
Parameters
Parameter | Type | Description |
---|---|---|
request | string |
Returns:
Request<P>
readResponse #
Signature:
export declare function readResponse<D>(response: string): Response<D>;
Parameters
Parameter | Type | Description |
---|---|---|
response | string |
Returns:
Response<D>
serialize #
Signature:
export declare function serialize(object: Request<any> | Response<any>): string;
Parameters
Parameter | Type | Description |
---|---|---|
object | Request |
Returns:
string
toStatus #
Signature:
export declare function toStatus(response: Response<any>): Status;
Parameters
Parameter | Type | Description |
---|---|---|
response | Response |
Returns:
Variables #
RPC_CALL_FIND #
Signature:
RPC_CALL_FIND = "find"
RPC_CALL_FINDONE #
Signature:
RPC_CALL_FINDONE = "findOne"
RPC_CALL_GEN_REF_ID #
Signature:
RPC_CALL_GEN_REF_ID = "genRefId"
RPC_CALL_LOAD_DOMAIN #
Signature:
RPC_CALL_LOAD_DOMAIN = "loadDomain"
RPC_CALL_TX #
Signature:
RPC_CALL_TX = "tx"
Type Aliases #
ReqId #
Signature:
export declare type ReqId = string | number;