|
@@ -24,13 +24,13 @@ public class WebSocketServer {
|
|
|
|
|
|
private ChannelFuture serverChannelFuture;
|
|
|
|
|
|
- @PostConstruct
|
|
|
+ //@PostConstruct
|
|
|
public void start() throws Exception {
|
|
|
log.info("Starting server at " + webSocketPort);
|
|
|
serverChannelFuture = b.bind(webSocketPort).sync();
|
|
|
}
|
|
|
|
|
|
- @PreDestroy
|
|
|
+ //@PreDestroy
|
|
|
public void stop() throws Exception {
|
|
|
log.info("stop server at " + webSocketPort);
|
|
|
serverChannelFuture.channel().closeFuture().sync();
|