miguelgrinberg / simple-websocket

Simple WebSocket server and client for Python.
MIT License
78 stars 17 forks source link

Is this thread-safe? #13

Closed pastre closed 2 years ago

pastre commented 2 years ago

Can I setup a thread to always listen for messages received and on another thread send messages?

miguelgrinberg commented 2 years ago

Yes, that should work, as long as you ensure your application is also thread safe.

pastre commented 2 years ago

Awesome! Thanks for your attention