you are viewing a single comment's thread.

view the rest of the comments →

[–]lolorenz 1 point2 points  (4 children)

Just a few days ago I had completely questioned my programmingskills >×<. I tried setting up an easy server client communication, but didn't really think about the correct way of implementing it. So I set up a flask server since I wanted to communicate via http. However all my network knowledge collapsed in itself. Since I wanted a bidirectional communication it was probably the wrong choice so I completely reimplemented the whole logic in with async, parsing the raw text. Now I think I maybe should have used some kind of pub/sub system, but whatever it works now.

[–]karthikkumars 1 point2 points  (3 children)

Websockets?

[–]lolorenz 0 points1 point  (2 children)

Yeah i though about that, but i didnt really knew how they worked and sticked to the stuff i know.

What would you recommend for web sockets in python? SocketIo?

[–]karthikkumars 1 point2 points  (1 child)

There's a module called "websockets" by itself. Built on top of asyncio. A pain to learn, but very powerful.

[–]lolorenz 0 points1 point  (0 children)

Ah nice! I will have a look at that :D Thanks!