MobileRpcProtocol Class

Beta  

RPC interface protocol for an Mobile-based application.

Extends

Methods

Name Description
constructor(configuration: MobileRpcConfiguration, endPoint: RpcEndpoint): MobileRpcProtocol    
sendToBackend(message: MobileRpcChunks): void    
encodeRequest(request: MobileRpcRequest): Promise<MobileRpcChunks> Static    

Inherited methods

Name Inherited from Description
fulfill(request: SerializedRpcRequest): Promise<RpcRequestFulfillment> RpcProtocol Obtains the implementation result on the backend for an RPC operation request.
getCode(status: RpcRequestStatus): number RpcProtocol Override to supply the protocol-specific code corresponding to a status value.
getOperationFromPath(path: string): SerializedRpcOperation RpcProtocol Override to supply the operation for a protocol-specific path value.
getStatus(code: number): RpcRequestStatus RpcProtocol Override to supply the status corresponding to a protocol-specific code value.
inflateToken(tokenFromBody: IModelTokenProps, _request: SerializedRpcRequest): IModelTokenProps RpcProtocol If checkToken is true, will be called on the backend to inflate the IModelToken for each request.
serialize(request: RpcRequest): Promise<SerializedRpcRequest> RpcProtocol Serializes a request.
supplyPathForOperation(operation: RpcOperation, _request: RpcRequest | undefined): string RpcProtocol Override to supply the protocol-specific path value for an RPC operation.

Properties

Name Type Description
requests Map<string, MobileRpcRequest>    
requestType MobileRpcRequest    
socket WebSocket    

Inherited properties

Name Type Inherited from Description
checkToken boolean RpcProtocol Used by protocols that can transmit IModelToken values natively.
configuration RpcConfiguration RpcProtocol The configuration for the protocol.
events Static BeEvent<RpcProtocolEventHandler> RpcProtocol Events raised by all protocols.
events BeEvent<RpcProtocolEventHandler> RpcProtocol Events raised by the protocol.
invocationType undefined RpcProtocol The RPC invocation class for this protocol.
preserveStreams boolean RpcProtocol Used by protocols that can transmit stream values natively.
transferChunkThreshold number RpcProtocol If greater than zero, specifies where to break large binary request payloads.

Object Literals

Name Description
serializedClientRequestContextHeaderNames  

Defined in

Last Updated: 13 June, 2024