Lawouach/WebSocket-for-Python — Issue #22: Typos following recent code changes...
Author: dbrnz
Created: 2012-02-13 01:01:43+00:00
State: open

diff --git a/example/echo_client.py b/example/echo_client.py
index 94b1f04..9b6698e 100644
--- a/example/echo_client.py
+++ b/example/echo_client.py
@@ -13,7 +13,7 @@ class EchoClient(WebSocketClient):
print i
self.send("*" * i)

- def closed(self, code, reason):
+ def closed(self, code, reason=None):
print "Closed down", code, reason

def received_message(self, m):
diff --git a/ws4py/exc.py b/ws4py/exc.py
index 5a87f36..5a22ee2 100644
--- a/ws4py/exc.py
+++ b/ws4py/exc.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

__all__ = ['WebSocketException', 'FrameTooLargeException', 'ProtocolException',
- 'FUnsupportedFrameTypeException', 'TextFrameEncodingException',
+ 'UnsupportedFrameTypeException', 'TextFrameEncodingException',
'StreamClosed', 'HandshakeError', 'InvalidBytesError']

class WebSocketException(Exception): pass
diff --git a/ws4py/websocket.py b/ws4py/websocket.py
index bbff576..cf78b8a 100644
--- a/ws4py/websocket.py
+++ b/ws4py/websocket.py
@@ -135,7 +135,7 @@ class WebSocket(object):
bytes = payload.next()
first = True
for chunk in payload:
- write(message_sender(bytes).fragment(first=first))
+ self.sender(message_sender(bytes).fragment(first=first))
bytes = chunk
first = False