Mantis - Resin
Viewing Issue Advanced Details
6229 minor always 04-14-19 04:26 04-14-19 04:28
nam  
nam  
normal  
closed 4.0.61  
no change required  
none    
none 4.0.61  
0006229: WebSocketListener.onClose() needs the close status and reason for spring support
resin: WebSocketListener.onClose(WebSocketContext context) throws IOException;

spring: WebSocketHandler.afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception;

https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/socket/WebSocketHandler.html#afterConnectionClosed-org.springframework.web.socket.WebSocketSession-org.springframework.web.socket.CloseStatus- [^]

Notes
(0006883)
nam   
04-14-19 04:28   
Close reasons are encoded in the WebSocketListener method names:

onClose()
onDisconnect()
onTimeout()