# netty-action

Netty 实战相关


## TODO LIST

* [x] [Netty(一) SpringBoot 整合长连接心跳机制](https://crossoverjie.top/2018/05/24/netty/Netty(1)TCP-Heartbeat/)


## 安装

```shell
git clone https://github.com/crossoverJie/netty-action.git

cd netty-action

mvn -Dmaven.test.skip=true clean package
``` 

## 启动

```shell
-- 启动 SBA
java -jar springboot-admin-1.0.0-SNAPSHOT.jar

-- 启动 服务端
java -jar netty-action-hearbeat-1.0.0-SNAPSHOT.jar

-- 启动 客户端
java -jar netty-action-heartbeat-client-1.0.0-SNAPSHOT.jar

-- 启动 第二个客户端
java -jar netty-action-heartbeat-client-1.0.0-SNAPSHOT.jar --server.port=8083 --spring.application.name=netty-heartbeat-client2 --logging.level.root=info --channel.id=101
```

## 截图
![show](https://github.com/crossoverJie/netty-action/blob/master/pic/show.gif)
![](https://ws4.sinaimg.cn/large/006tKfTcgy1frqfwembi6j31kw0o0dot.jpg)


# 联系作者
- [crossoverJie@gmail.com](mailto:crossoverJie@gmail.com)
- 微信公众号

![](https://ws1.sinaimg.cn/large/006tKfTcly1frz6eaf3s4j308c0au0ss.jpg)

