Re: [Twisted-Python] "blocking" on a response to a client

2018-11-05 Thread meejah
Chris Withers writes: > So, separate question: I have a client that's making a connection to a > websocket from a server. The client needs to send an "auth" message > once the websocket is up, and the client code shouldn't progress until > it receives an affirmative response. How do I do this in

[Twisted-Python] "blocking" on a response to a client

2018-11-05 Thread Chris Withers
Hi Again, So, separate question: I have a client that's making a connection to a websocket from a server. The client needs to send an "auth" message once the websocket is up, and the client code shouldn't progress until it receives an affirmative response. How do I do this in a non-blocking

[Twisted-Python] automated tests for a server application

2018-11-05 Thread Chris Withers
Hi All, (copying in Moshe as he expressed an interest!) I've inherited a twisted app for which I'd like to add some changes but want to improve the automated test coverage before I do. The app itself listens on a web socket (autobahn), an rpc port (RPyC) and also connects to a mysql