Modified Socket for web app