-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Add functionality for websocket listening #8
base: master
Are you sure you want to change the base?
Conversation
Thanks! Can you fix the failing code checks? See https://github.com/rhasspy/rhasspy-client/runs/461537051?check_suite_focus=true |
Oh wow, just seeing this. I can jump on the problems ASAP |
@@ -105,7 +108,7 @@ async def main(): | |||
|
|||
# Begin client session | |||
async with aiohttp.ClientSession() as session: | |||
client = RhasspyClient(args.api_url, session) | |||
client = RhasspyClient(args.api_host, args.api_port, session) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The secure
parameter you added to RhasspyClient.__init__
isn't used in the main function. Shouldn't you add an argument to the argument parser to use https/wss? I also think tls
(and the corresponding --tls
argument) is more descriptive than secure
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd agree with that. It'll be a little while before I can get back to this but I can fix when I have time
@logasja Are you still working on this? |
Ability to define a function that handles events from web sockets (might be good to have it start a new task when doing so)