Add flush message method to ws connection