1. Jason Pellerin
  2. gevent-websocket

Commits

Kevin Le  committed 9139ecc

set socket attribute in WebSocketHixie

  • Participants
  • Parent commits 586c181
  • Branches default

Comments (0)

Files changed (1)

File geventwebsocket/websocket.py

View file
  • Ignore whitespace
         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