using logs for websockets