We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reproduce:
import logging from typing import Optional from kubemq.commandquery import Responder, RequestReceive, Response from kubemq.subscription import SubscribeRequest, SubscribeType, EventsStoreType from kubemq.tools import ListenerCancellationToken def message_handler(request: RequestReceive) -> Optional[Response]: if request is None: return None response = Response(request) response.request_id = request.request_id response.reply_channel = request.reply_channel return response def error_handler(error: str) -> None: logging.error(error) if __name__ == "__main__": cancellation_token = ListenerCancellationToken() responder = Responder(kubemq_address="kubemq:50000") subscribe_request = SubscribeRequest( channel="channel_name", client_id="client", events_store_type=EventsStoreType.Undefined, events_store_type_value=0, subscribe_type=SubscribeType.Queries ) responder.subscribe_to_requests( subscribe_request=subscribe_request, handler=message_handler, error_handler=error_handler, listener_cancellation_token=cancellation_token ) input("press enter to end receiving messages")
Environment:
The text was updated successfully, but these errors were encountered:
Any updates on this issue
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
How to reproduce:
Environment:
The text was updated successfully, but these errors were encountered: