changed websocket to rest post adding tests.