Web SDK - IInvocation

Home > rainway-sdk > IInvocation

IInvocation type

Invocations represent commands we want the E2E host to execute They can be thought of as simplified versions of the Rainway SDK C ABI

Signature:

export declare type IInvocation = {
    discriminator: 1;
    value: IInitialize_Invoke;
} | {
    discriminator: 2;
    value: IShutdown_Invoke;
} | {
    discriminator: 3;
    value: IGetVersion_Invoke;
} | {
    discriminator: 4;
    value: IGetPeerId_Invoke;
} | {
    discriminator: 5;
    value: ISetLogLevel_Invoke;
} | {
    discriminator: 6;
    value: IGetLogs_Invoke;
} | {
    discriminator: 7;
    value: IClearLogs_Invoke;
} | {
    discriminator: 8;
    value: IAcceptJoinRequest_Invoke;
} | {
    discriminator: 9;
    value: IRejectJoinRequest_Invoke;
} | {
    discriminator: 10;
    value: IGetJoinRequests_Invoke;
} | {
    discriminator: 11;
    value: IClearJoinRequests_Invoke;
} | {
    discriminator: 12;
    value: IAcceptStreamRequest_Invoke;
} | {
    discriminator: 13;
    value: IRejectStreamRequest_Invoke;
} | {
    discriminator: 14;
    value: IGetStreamRequests_Invoke;
} | {
    discriminator: 15;
    value: IClearStreamRequests_Invoke;
} | {
    discriminator: 16;
    value: IGetPeerStateChanges_Invoke;
} | {
    discriminator: 17;
    value: IClearPeerStateChanges_Invoke;
} | {
    discriminator: 18;
    value: IGetPeerMessages_Invoke;
} | {
    discriminator: 19;
    value: IClearPeerMessages_Invoke;
};

References: IInitialize_Invoke, IShutdown_Invoke, IGetVersion_Invoke, IGetPeerId_Invoke, ISetLogLevel_Invoke, IGetLogs_Invoke, IClearLogs_Invoke, IAcceptJoinRequest_Invoke, IRejectJoinRequest_Invoke, IGetJoinRequests_Invoke, IClearJoinRequests_Invoke, IAcceptStreamRequest_Invoke, IRejectStreamRequest_Invoke, IGetStreamRequests_Invoke, IClearStreamRequests_Invoke, IGetPeerStateChanges_Invoke, IClearPeerStateChanges_Invoke, IGetPeerMessages_Invoke, IClearPeerMessages_Invoke