Refactor socket to share port with server
Prevent notify in IE