Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

wait_for_response method for synchronous messagebus communication #1423

Merged
merged 3 commits into from
Feb 15, 2018

Conversation

forslund
Copy link
Collaborator

Description

The client handles the basic case when wanting to do a syncronous
request-response action.

The method sets up a handler waits for the response and handles timeout.

The expected format is that the reply message should have the same type as
the original message with ".response" appended.

An method in the Message class has been added to create a standard response for
a message.

How to test

Run cli and make sure :skills works as intended.

Contributor license agreement signed?

CLA [Yes]

The client handles the basic case when wanting to do a syncronous
request-response action.

The method sets up a handler waits for the response and handles timeout.

The expected format is that the reply message should have the same type as
the original message with ".response" appended.

An method in the Message class has been added to create a standard response for
a message.
@forslund forslund added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Feb 14, 2018
Fixed typos and refined text
@penrods penrods self-requested a review February 15, 2018 07:38
Copy link
Contributor

@penrods penrods left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@penrods penrods merged commit f8fec82 into MycroftAI:dev Feb 15, 2018
@penrods penrods mentioned this pull request Feb 15, 2018
antlarr pushed a commit to antlarr/mycroft-core that referenced this pull request Feb 25, 2018
…croftAI#1423)

* Add wait_for_response method to Websock client

The client handles the basic case when wanting to do a syncronous
request-response action.

The method sets up a handler waits for the response and handles timeout.

The expected format is that the reply message should have the same type as
the original message with ".response" appended.

An method in the Message class has been added to create a standard response for
a message.

* Let the :skills command use wait_for_response

* Minor docstring changes

Fixed typos and refined text
@forslund forslund deleted the feature/messagebus-wait_for_response branch July 11, 2018 08:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants