environment/lib/python2.7/site-packages/IPython/frontend/html/notebook/handlers.py
def ws_url(self):
        """websocket url matching the current request

        turns http[s]://host[:port] into
                ws[s]://host[:port]
        """
        proto = self.request.protocol.replace('http', 'ws')
        host = self.application.ipython_app.websocket_host # default to config value
        if host == '':
            host = self.request.host # get from request
        return "%s://%s" % (proto, host)
def ws_url(self):
        proto = self.request.protocol.replace('http', 'ws')
        host = self.application.ipython_app.websocket_host # default to config value
        if host == '':
            host = self.request.host # get from request
        return "%s://%s" % (proto, host)
def ws_url ( self ) : proto = self . request . protocol . replace ( 'http' , 'ws' ) host = self . application . ipython_app . websocket_host # default to config value if host == '' : host = self . request . host # get from request return "%s://%s" % ( proto , host )
websocket url matching the current request

        turns http[s]://host[:port] into
                ws[s]://host[:port]
websocket url matching the current request