Author: kpreisser Date: Thu Feb 13 18:21:53 2014 New Revision: 1567995 URL: http://svn.apache.org/r1567995 Log: Merged revision(s) 1567993 from tomcat/trunk: Log close code and reason when the Websocket connection is closed.
Modified: tomcat/tc7.0.x/trunk/ (props changed) tomcat/tc7.0.x/trunk/webapps/examples/websocket/echo.xhtml Propchange: tomcat/tc7.0.x/trunk/ ------------------------------------------------------------------------------ Merged /tomcat/trunk:r1567993 Modified: tomcat/tc7.0.x/trunk/webapps/examples/websocket/echo.xhtml URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/examples/websocket/echo.xhtml?rev=1567995&r1=1567994&r2=1567995&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/webapps/examples/websocket/echo.xhtml (original) +++ tomcat/tc7.0.x/trunk/webapps/examples/websocket/echo.xhtml Thu Feb 13 18:21:53 2014 @@ -79,9 +79,9 @@ ws.onmessage = function (event) { log('Received: ' + event.data); }; - ws.onclose = function () { + ws.onclose = function (event) { setConnected(false); - log('Info: WebSocket connection closed.'); + log('Info: WebSocket connection closed, Code: ' + event.code + (event.reason == "" ? "" : ", Reason: " + event.reason)); }; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org