.channel(NioServerSocketChannel.class)
.childHandler(new SockJSChannelInitializer(simplePushConfig, config.dataStore(), config.sockJsConfig(), reaperExcutorGroup));
final Channel ch = sb.bind(simplePushConfig.host(), simplePushConfig.port()).sync().channel();
logger.info("Server started");
logger.debug(config.toString());
ch.closeFuture().sync();
} finally {
bossGroup.shutdownGracefully();
workerGroup.shutdownGracefully();
}
}