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

message from the server side? #68

Open
atitoff opened this issue Jun 10, 2024 · 5 comments
Open

message from the server side? #68

atitoff opened this issue Jun 10, 2024 · 5 comments

Comments

@atitoff
Copy link

atitoff commented Jun 10, 2024

Can I initiate a message from the server side? I didn't find it in the examples. Only if the request comes from the client side can I send a notification.

@mosquito
Copy link
Member

@atitoff
Copy link
Author

atitoff commented Jun 10, 2024

how can I call "getJoke(self)" from another class instance?
in your example they are not called anywhere...

@mosquito
Copy link
Member

client calls getJoke, server calls joke on the client, after the client returns the result, that result is a placed to the getJoke left on await.

@atitoff
Copy link
Author

atitoff commented Jun 10, 2024

The server cannot be the initiator of the message? Got it, I’ll write my own wrapper for the aiohttp websockets

@mosquito
Copy link
Member

You have any option for trigger event on the server side.

This library provides contract and implementation of the transport.

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

No branches or pull requests

2 participants