Source

gevent-websocket / geventwebsocket / websocket.py

Diff from to

File geventwebsocket/websocket.py

         self.protocol = environ.get('HTTP_SEC_WEBSOCKET_PROTOCOL')
         self.path = environ.get('PATH_INFO')
         self.fobj = socket.makefile()
+        self.socket = socket
         self._writelock = Semaphore(1)
         self._write = socket.sendall