Commit 80349893 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Code cleanup

parent 174ccbb3
......@@ -69,6 +69,9 @@ class Client(WebSocket):
def handle_message(self, message):
self.server.onmessage(self, message)
def __str__(self):
return '<Client at %s:%d>' % self.address
if __name__ == '__main__':
import sys
......
......@@ -108,7 +108,3 @@ class WebSocket(FrameReceiver):
def close(self):
raise SocketClosed()
self.onclose()
def __str__(self):
return '<Client at %s:%d>' % self.address
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment