(self, sock, protocols, extensions, environ)
return websocket
Initialize the `handler_cls` instance with the given
        negociated sets of protocols and extensions as well as
        the `environ` and `sock`.

        Stores then the instance in the `environ` dict
        under the `'ws4py.websocket'` key.
Initialize the `handler_cls` instance with the given
        negociated sets of protocols and extensions as well as
        the `environ` and `sock`.
Initialize the handler_cls instance with the given negociated sets of protocols and extensions as well as the environ and sock .
def make_websocket(self, sock, protocols, extensions, environ):
        """
        Initialize the `handler_cls` instance with the given
        negociated sets of protocols and extensions as well as
        the `environ` and `sock`.

        Stores then the instance in the `environ` dict
        under the `'ws4py.websocket'` key.
        """
        websocket = self.handler_cls(sock, protocols, extensions,
                                     environ.copy())
        environ['ws4py.websocket'] = websocket
        return websocket
def make_websocket ( self , sock , protocols , extensions , environ ) : websocket = self . handler_cls ( sock , protocols , extensions , environ . copy ( ) ) environ [ 'ws4py.websocket' ] = websocket return websocket