Skip to content

Methods are not resolved when reconnecting #93

Description

@dnish

Hey,
if the connection fails while calling a method, the method will never be resolved even if I've enabled autoReconnect. For example:

async function test() {

    const a = new DDPClient();
    await a.connect();

   // We shut down the DDP server to simulate a failing connection
    setTimeout(async () => {
        const testy = await a.call("categories.get");
        console.log(testy);
    },5000)
}

The promise/callback will never be resolved when we've enabled useSockJs:true.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions