-
Notifications
You must be signed in to change notification settings - Fork 285
Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels