Remove hardcoded string
Remove switch in favor of methods of socket handlers
Remove log
Remove console errors on browser close / normal disconnect