fix indexjs websocket