change websokcet endpoint to ws