--- miscJava/Test3/WebContent/WebsockTest.html 2014/02/11 12:54:19 2115 +++ miscJava/Test3/WebContent/WebsockTest.html 2014/02/11 13:02:21 2116 @@ -95,6 +95,10 @@ } }); + $(window).unload(function(){ + socket.close(); + }); + });