Anyone out there know about Python websockets?
Specifically, how the hell I detect a disconnection without trying to read from it - causing an exception? 
That's how I'm detecting disconnected state now, it throws when trying to read from it... seems suboptimal, though.https://github.com/slackapi/python-slackclient/pull/297/files …
-
-
Just use JavaScript!
#FuckJavaScriptMerci. Twitter en tiendra compte pour améliorer votre fil. SupprimerSupprimer
-
-
-
Suboptimal in what way?
Merci. Twitter en tiendra compte pour améliorer votre fil. SupprimerSupprimer
-
-
-
I'm no pythonista, but I think handling an exception is just the python way.
-
Indeed.
Fin de la conversation
Nouvelle conversation -
-
-
Ironically, the library is just checking the truthiness of variables in an if statement and converting false to an exception. I.e., it's the _opposite_ of scala.util.Try. But the library is designed to return data OR exception, so... when in Rome.
Nouvelle conversation -
Le chargement semble prendre du temps.
Twitter est peut-être en surcapacité ou rencontre momentanément un incident. Réessayez ou rendez-vous sur la page Twitter Status pour plus d'informations.