Anonymous committed a759d5b

Create WSGIServer.clients if it doesn't exist.

See issue #35.

  • Participants
  • Parent commits 03579da

Comments (0)

Files changed (1)

File geventwebsocket/

         # Since we're now a websocket connection, we don't care what the
         # application actually responds with for the http response
+        if not hasattr(self.server, "clients"):
+            self.server.clients = {}
             self.server.clients[self.client_address] = Client(self.client_address, self.websocket)
             self.application(self.environ, lambda s, h: [])