On 2/14/19 9:44 AM, Simon Connah wrote:
> Hi,
> 
> I was wondering what the best practice for writing web socket servers in
> Python was in 2019? I found an old example on the web which used the
> tornado library but that was talking about Chrome 22 as the client which
> is ancient now so I'm not sure if things have changed?
> 
> Any suggestions on the best library to use would be greatfully accepted.
> I'd ideally like to be able to do it in an asynchronous manner.
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor


Full Stack Python's page on the topic has quite a lot of resources:

https://www.fullstackpython.com/websockets.html


The thing to keep in mind with old tutorials is that the state of
Python's own async support has evolved a lot recently.  Before, you
absolutely had to depend on a framework which would do the work of
supporting concurrenct connections or you would go insane, but now
you'll start to see examples, I expect, of doing simple things without
bringing in one of the frameworks.  (If your intent is production work,
the well tested frameworks are still going to be the best bet)



_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to