Skip to content

Javascript: RPC client may exit too early #258

Open
@jaydpather

Description

@jaydpather

I found this tutorial quite confusing: https://www.rabbitmq.com/tutorials/tutorial-six-javascript.html

It claims it is going to show you how to write an RPC, where the caller waits for a response before returning. However, the example code does the opposite: in rpc_client.js, the call to amqp.connect returns before the callback for channel.consume is invoked.

The C# RPC tutorial does a true RPC, where it waits for the response before returning. The Javascript tutorial should have a similar behavior.

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