adding web-socket element