* raising DataError will be caught by Connection * onerror will be triggered if defined * This is now consistent with the newer framing modules
…ding masked frame
* This seems consistent with other errors although I could be convinced otherwise...
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
…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
* 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
* Just need to flip MORE bit to FIN