:wrench: :joy: changed conn.close trigger from window.beforeunload from window.unload
:wrench: :sweat: sent content wrapped in 'message' or 'status'