Skip to content

Methods are not resolved when reconnecting #93

@dnish

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.

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