Commit 26c511bd authored by Taddeüs Kroes's avatar Taddeüs Kroes

Some typo bugfixes

parent 5b8b8d81
...@@ -98,7 +98,7 @@ class Connection(object): ...@@ -98,7 +98,7 @@ class Connection(object):
""" """
while True: while True:
try: try:
self.onmessage(self, self.receive()) self.onmessage(self.receive())
if self.received_close_params is not None: if self.received_close_params is not None:
self.handle_close(*self.received_close_params) self.handle_close(*self.received_close_params)
......
...@@ -60,7 +60,7 @@ class websocket(object): ...@@ -60,7 +60,7 @@ class websocket(object):
client handshake). Note that the handshake may raise an InvalidRequest client handshake). Note that the handshake may raise an InvalidRequest
exception. exception.
""" """
client, address = socket.socket.accept(self) client, address = self.sock.accept()
client = websocket(client) client = websocket(client)
client.server_handshake() client.server_handshake()
return client, address return client, 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