(self, ws)
return response
Ignore any keep alive responses
Ignore any keep alive responses
Ignore any keep alive responses
def _get_response(self, ws):
        '''Ignore any keep alive responses'''

        response = json.loads(ws.recv())
        while response['type'] in self.keep_alives:
            response = json.loads(ws.recv())
        return response
def _get_response ( self , ws ) : response = json . loads ( ws . recv ( ) ) while response [ 'type' ] in self . keep_alives : response = json . loads ( ws . recv ( ) ) return response