Permalink
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

    Re-factor internals so that error handling can be easily overriden
    Martyn Loughran committed May 6, 2011
  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

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

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

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

    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
    mloughran committed Mar 23, 2011
  4. Added shared examples to all integration tests which fail showing tha…

    …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
    mloughran committed Mar 24, 2011
Commits on Mar 23, 2011
  1. Refactor close_websocket method and default the close code to 1000

    * 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
    mloughran committed Mar 23, 2011
Commits on Mar 14, 2011
  1. Make debug logging consistent

    mloughran committed Mar 12, 2011
  2. Removed unused masking api

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

    * 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
    mloughran committed Mar 12, 2011
  4. Moved message handling into separate module

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

    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
    mloughran committed Mar 12, 2011
  6. Implemented framing for draft 04 (also used in 05, 06)

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

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

    mloughran committed Mar 1, 2011