def METHOD_NAME(self, reply_text):
    data = {}
    data['text'] = reply_text.decode('utf-8')
    if data['text'] == "[DONE]":
        print('[ Closing socket... ]')
        SHARED['ws'].close()
        SHARED['wb'].shutdown()
    json_data = json.dumps(data)
    SHARED['ws'].send(json_data)