Commits

Kevin Le committed 9139ecc

set socket attribute in WebSocketHixie

  • Participants
  • Parent commits 586c181

Comments (0)

Files changed (1)

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