Skip to content

Commit

Permalink
WebSocketWSGIRequestHandler: allow subclassing of WebSocketWSGIHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
bozzzzo committed Feb 4, 2016
1 parent 52d04b9 commit c7e51fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ws4py/server/wsgirefserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def finish_response(self):
self.request_handler.server.link_websocket_to_server(ws)

class WebSocketWSGIRequestHandler(WSGIRequestHandler):
WebSocketWSGIHandler = WebSocketWSGIHandler
def handle(self):
"""
Unfortunately the base class forces us
Expand All @@ -89,7 +90,7 @@ def handle(self):
return

# next line is where we'd have expect a configuration key somehow
handler = WebSocketWSGIHandler(
handler = self.WebSocketWSGIHandler(
self.rfile, self.wfile, self.get_stderr(), self.get_environ()
)
handler.request_handler = self # backpointer for logging
Expand Down

0 comments on commit c7e51fd

Please sign in to comment.