saas-smartAi通信协议标准库
gongshangguo
2022-03-02 d13ed6d79af61db6333ad5cc3200d96b6410d064
client/client.go
@@ -438,6 +438,11 @@
   return c.deviceId
}
// 获取连接状态
func (c *Client) GetState() State {
   return c.state
}
// 判断连接是否关闭
func (c *Client) IsClosed() bool {
   return c.state == StateDisconnected