Wowza Community

how can I get the websocket closed code in server.

I have created a websocket server by referring to this tutorial https://www.wowza.com/docs/how-to-create-a-websocket-server

When a client closes a websocket, I don’t seem to have a way to get the webscoket closed code or reason in onDestry method in WebSocketEventNotify listener?

I do see in the wowza server log file has logging info like this:

comment server INFO 200 - WebSocketSession.destroy[1840081020]: source:client status:-1 description:Unknown

How or where can I get the websocket closed cod,string, reason ?

Thanks