change ok from REST to WEBsocke