Changed websocket messages to REST style api