diff --git a/docs/TODO b/docs/TODO index 97c02f6..cc4b477 100644 --- a/docs/TODO +++ b/docs/TODO @@ -1,17 +1,9 @@ -- Support protocol version 07: - http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07 +- Go implementation - Support multiple targets that are selected by the path line. Some sort of wildcarding of ports too. +- Support SSL targets too. + - wstelnet: support CSI L and CSI M -- create gevent version: - http://nichol.as/benchmark-of-python-web-servers - http://n01se.net/paste/QXO - - - Need at least libevent-1.4 (i.e. not 9.04 Jaunty) - - sudo aptitude install python-dev libevent-dev python-setuptools - - sudo easy_install gevent diff --git a/websocket.py b/websocket.py index 6b49ee0..8ae64d7 100644 --- a/websocket.py +++ b/websocket.py @@ -49,8 +49,7 @@ else: # Degraded functionality if these imports are missing for mod, sup in [('numpy', 'HyBi protocol'), - ('ctypes', 'HyBi protocol'), ('ssl', 'TLS/SSL/wss'), - ('resource', 'daemonizing')]: + ('ssl', 'TLS/SSL/wss'), ('resource', 'daemonizing')]: try: globals()[mod] = __import__(mod) except ImportError: @@ -298,9 +297,9 @@ Sec-WebSocket-Accept: %s\r f['mask'] = buf[f['hlen']:f['hlen']+4] b = c = '' if f['length'] >= 4: - mask = numpy.frombuffer(buf, dtype=numpy.dtype('