summaryrefslogtreecommitdiff
path: root/tests/echo.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix default log level in echo and load testsSolly Ross2014-01-301-1/+3
| | | | | | | | | | | | | Since we switched to using the `logging` module to log in pull request #100, none of the messages on the 'INFO' level were being shown from `tests/echo.py` and `tests/load.py`, since the default log level is 'WARNING'. Now, the log level is set to INFO in `tests/echo.py` and `tests/load.py`, to match the log level in the main websockify executable. Fixes #109
* Merge commit '13c99bcf053f7f3af8ba84c0d963a9591e020f49'Peter Åstrand (astrand)2013-11-281-2/+2
|\ | | | | | | | | * commit '13c99bcf053f7f3af8ba84c0d963a9591e020f49': Fix search path construction in tests.
| * Fix search path construction in tests.Joel Martin2013-10-291-2/+2
| | | | | | | | | | | | This way the tests can be run directly from within the tests directory and they might also have a chance of running on Windows (where the path separator is different).
* | Make echo.py and load.py work again, after the refactoring ofPeter Åstrand (astrand)2013-03-201-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | websocket.py: * With echo.py, which doesn't need any server configuration, we can just switch over our application class to inherit from WebSocketRequestHandler instead of WebSocketServer. Also, need to use the new method name new_websocket_client. * With load.py, since we have the "delay" configuration, we need both a server class and a request handler. Note that for both tests, I've removed the raising of self.EClose(closed). This is incorrect. First of all, it's described as "An exception before the WebSocket connection was established", so not suitable for our case. Second, it will cause send_close to be called twice. Finally, self.EClose is now in the WebSocketServer class, and not a member of the request handler.
* | Rename self.client to self.request, ie adapt to:Peter Åstrand (astrand)2013-03-201-4/+4
|/ | | | | | | | >commit b9e1295f7afa34a4c69618609e053af154e477d7 > Prepare for solving https://github.com/kanaka/websockify/issues/71: > > Rename self.client to self.request, since this is what standard > SocketServer request handlers are using.
* tests: use new module path and remove Hixie code.Joel Martin2013-03-141-1/+1
|
* Fix latency test.Joel Martin2012-04-251-1/+1
| | | | For echo/latency tests default to current host:port or URL.
* Switch tests/echo.html to use websock.js.Joel Martin2012-01-031-1/+1
|
* Refactor and add IETF-07 protocol version support.Joel Martin2011-05-011-48/+32
| | | | | | | | | | | | | | | | | | | | | | - Add initial IETF-07 (HyBi-07) protocol version support. This version still uses base64 encoding since the API for binary support is not yet finalized. - Move socket send and recieve functions into the WebSocketServer class instead of having the sub-class do this. This simplifies sub-classes somewhat. The send_frame routine now returns the number of frames that were unable to be sent. If this value is non-zero then the sub-class should call again when the socket is ready until the pending frames count is 0. - Do traffic reporting in the main class instead. - When the client is HyBi style (i.e. IETF-07) then use the sub-protocol header to select whether to do base64 encoding or simply send the frame data raw (binary). Update include/websock.js to send a 'base64' protocol selector. Once the API support binary, then the client will need to detect this and set the protocol to 'binary'.
* Use /usr/bin/env shebang to make more crossplatform.Joel Martin2011-03-261-1/+1
| | | | Based on noVNC pull request from Decorum.
* Add latency test and browser latency test results.Joel Martin2011-01-191-1/+1
|
* Strip "ws" from test names. Update TODO.Joel Martin2011-01-191-0/+91
Also, rename wstest to load.