Add protocol when "onopen"