Switch branches/tags
Commits on May 8, 2011
Commits on May 6, 2011
  1. Release version 0.3.0

    mloughran committed May 6, 2011
  2. Merge pull request #39 from imanel/proper_on_error

    Martyn Loughran
    Martyn Loughran committed May 6, 2011
    Re-factor internals so that error handling can be easily overriden
  3. Merge branch 'draft5and6'

    mloughran committed May 6, 2011
Commits on Apr 4, 2011
  1. Improve and simlify handling of framing errors for draft 76

    mloughran committed Apr 4, 2011
    * raising DataError will be caught by Connection
    * onerror will be triggered if defined
    * This is now consistent with the newer framing modules
Commits on Mar 24, 2011
  1. Clean up debug logging

    mloughran committed Mar 24, 2011
    * no need to inspect since debug already does this
  2. Handle application errors in onclose by calling onerror

    mloughran committed Mar 24, 2011
    * This seems consistent with other errors although I could be convinced otherwise...
  3. Handle application errors in consistent way and support error codes

    mloughran committed Mar 23, 2011
    Previously errors in onopen were 'invisible' if debug was off and onerror had not been defined.
    * Application errors: if onerror has been defined then call that (as now), otherwise the exception will be re-raised and propagated up the stack.
    * Internal exceptions (e.g. HandshakeError) don't change: they will be passed to onerror if it's defined but otherwise just passed to debug
    The current spec does not define 400 Bad request so remove that too
  4. Added shared examples to all integration tests which fail showing tha…

    mloughran committed Mar 24, 2011
    …t error handling is inconsistent
    * Upgraded rspec to use latest shared example syntax
    * Created new fake clients so that same interface can be used in all shared examples
Commits on Mar 23, 2011
  1. Refactor close_websocket method and default the close code to 1000

    mloughran committed Mar 23, 2011
    * Check the code in the public close_websocket method rather than deep in the implementation. This means that close_websocket can be used internally with other codes
    * Added abort private method which makes aborting (defined in spec) clear in the code
    * Bugfix if body not supplied to close_websocket
Commits on Mar 14, 2011
  1. Removed unused masking api

    mloughran committed Mar 12, 2011
  2. Support draft 06 - new close frames

    mloughran committed Mar 12, 2011
    * Support sending a close status code from application code
        ws.close_websocket(4123, "Optional reason")
    * Read close status code when close message received. This isn't exposed to the API yet
  3. Moved message handling into separate module

    mloughran committed Mar 12, 2011
    The framing and message handling are independant - close message handling changed between drafts 05 and 06 with the same framing
  4. Functioning frame handling for draft 05

    mloughran committed Mar 12, 2011
    Basically just involved changing the draft 03 code to unmask the frame data as appropriate. Needs to be abstracted so that the code is shared between draft 03 & 05
  5. Implemented framing for draft 04 (also used in 05, 06)

    mloughran committed Mar 2, 2011
    * Just need to flip MORE bit to FIN
  6. Simple implementation of XOR masking

    mloughran committed Mar 2, 2011
    * I'm pretty sure this is massively slow, this is just supposed to work for now
Commits on Mar 1, 2011
  1. Released version 0.2.1

    mloughran committed Mar 1, 2011