IBaseProtocolHandler Interface
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/container-loader/legacy.
For more information about our API support guarantees, see here.
Signature
export interface IProtocolHandler
Properties
| Property | Alerts | Modifiers | Type | Description |
|---|---|---|---|---|
| attributes | Beta |
readonly |
IDocumentAttributes | |
| quorum | Beta |
readonly |
IQuorum |
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| close() | Beta |
void | |
| getProtocolState() | Beta |
IScribeProtocolState | |
| processMessage(message, local) | Beta |
IProcessMessageResult | |
| setConnectionState(connected, clientId) | Beta |
any | |
| snapshot() | Beta |
IQuorumSnapshot |
Property Details
attributes
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
readonly attributes: IDocumentAttributes;
Type: IDocumentAttributes
quorum
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
readonly quorum: IQuorum;
Type: IQuorum
Method Details
close
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
close(): void;
getProtocolState
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
getProtocolState(): IScribeProtocolState;
Returns
Return type: IScribeProtocolState
processMessage
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
processMessage(message: ISequencedDocumentMessage, local: boolean): IProcessMessageResult;
Parameters
| Parameter | Type | Description |
|---|---|---|
| message | ISequencedDocumentMessage | |
| local | boolean |
Returns
Return type: IProcessMessageResult
setConnectionState
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
setConnectionState(connected: boolean, clientId: string | undefined): any;
Parameters
| Parameter | Type | Description |
|---|---|---|
| connected | boolean | |
| clientId | string | undefined |
Returns
Return type: any
snapshot
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
snapshot(): IQuorumSnapshot;
Returns
Return type: IQuorumSnapshot