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

Client and Server at same time #240

Closed
majidnow opened this issue Jul 26, 2020 · 3 comments
Closed

Client and Server at same time #240

majidnow opened this issue Jul 26, 2020 · 3 comments
Labels

Comments

@majidnow
Copy link

majidnow commented Jul 26, 2020

Hi
Note: my problem is't library issue, it's work just fine.
I'm trying to create one loop as a server( web socket for a web application) and another as a client(get data from a service using by a tcp server). the received data by client will send to web application after some processing things through server (web socket).
When I ran loop (even inside a thread) after that I can't run second one(first one block running procedure).
How can I solve this?

@WyriHaximus
Copy link
Member

There can only be one event loop. So if you have two one will always block another, instead let both client and server use the same loop

@majidnow
Copy link
Author

Thanks for help. problem solved.

@clue clue added the question label Jul 27, 2020
@clue
Copy link
Member

clue commented Jul 27, 2020

I'll assume this is resolved and will close this for now, please feel free to report back otherwise 👍

@clue clue closed this as completed Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants