Åke Forslund
9acf5b7592
Utilize the mycroft-messagebus-client module
...
This utilizes the shared messagebus client implemented in the
mycroft-messagebus-client.
2021-03-22 06:31:50 +01:00
Åke Forslund
cba284e4a0
Fix custom timeout for wait_for_response()
...
The method didn't forward the selected timeout and only the default wait
was ever used.
2020-07-10 09:11:35 +02:00
Kris Gesling
b0c34cba97
Merge pull request #2507 from forslund/feature/pyee-7
...
Update pyee to v7.0.1
2020-07-09 16:10:00 +09:30
Åke Forslund
0fc1ba325a
Update pyee to v7.0.1
...
pyee has added ThreadExecutor variant of the EventEmitter which can
replace the home-spun threadpool based emitter
2020-07-07 08:21:42 +02:00
Åke Forslund
b7d709c3c8
Add wait_for_message() method to messagebus client
...
- Refactor message waiting into a MessageWaiter class to be able to use the
same code in both wait_for_message and wait_for_response.
- Add some basic unittests
2020-07-05 09:28:17 +02:00
Åke Forslund
29f60e6d66
Clean up the wait_for_response method
...
- Use nonlocal instead of mutable object.
- Set default timeout in method argument
2020-07-05 09:28:17 +02:00
Åke Forslund
3b2c7267e7
Rename Message type arg to msg_type
...
Name change to remove collision with the builin type.
2019-09-02 13:30:55 +02:00
Åke Forslund
4034745340
Restore build_url static member to messagebus client
2019-07-24 08:49:44 +02:00
Chris Veilleux
be3dff99a1
added licence info to files without it and a missing docstring
2019-07-19 08:16:55 +02:00
Chris Veilleux
d8f3095d40
Rename the message bus client and abstract config loading
...
Message bus config loading is now shared by service and client.
messagebus.client.ws file is still available in case skills are using it. It is a backport that inherits from the new MessageBusClient class. Adds depreciation warning.
2019-07-19 08:16:54 +02:00