Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

logasja
Copy link

@logasja logasja commented Feb 22, 2020

Ability to define a function that handles events from web sockets (might be good to have it start a new task when doing so)

@koenvervloesem
Copy link
Member

Thanks! Can you fix the failing code checks?

See https://github.com/rhasspy/rhasspy-client/runs/461537051?check_suite_focus=true

@synesthesiam synesthesiam self-assigned this Jul 20, 2020
@logasja
Copy link
Author

logasja commented Oct 18, 2020

Oh wow, just seeing this. I can jump on the problems ASAP

rhasspyclient/__init__.py Outdated Show resolved Hide resolved
@@ -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)
Copy link
Member

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.

Copy link
Author

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

@koenvervloesem
Copy link
Member

@logasja Are you still working on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants