出错关闭连接

master
taoshihan 2 years ago
parent 5283d3bb06
commit 20c5bcb85f

@ -4,7 +4,6 @@
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" /> <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta name="keywords" content="开源客服系统,golang在线客服,免费客服系统,go语言在线聊天工具,gofly,GOFLY客服系统"/> <meta name="keywords" content="开源客服系统,golang在线客服,免费客服系统,go语言在线聊天工具,gofly,GOFLY客服系统"/>
<meta name="description" content="golang开发的开源免费客服系统,可独立部署客服系统,支持文字/表情/图片/文件发送,支持快捷回复,支持IP黑名单,展示访客信息,后台权限控制"/> <meta name="description" content="golang开发的开源免费客服系统,可独立部署客服系统,支持文字/表情/图片/文件发送,支持快捷回复,支持IP黑名单,展示访客信息,后台权限控制"/>
<meta name="author" content="陶士涵">
<title>GO语言开源客服系统-GOFLY</title> <title>GO语言开源客服系统-GOFLY</title>
<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.1/theme-chalk/index.min.css"> <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.1/theme-chalk/index.min.css">
<script src="https://cdn.staticfile.org/vue/2.6.11/vue.min.js"></script> <script src="https://cdn.staticfile.org/vue/2.6.11/vue.min.js"></script>

@ -41,7 +41,8 @@ func NewKefuServer(c *gin.Context) {
var receive []byte var receive []byte
messageType, receive, err := conn.ReadMessage() messageType, receive, err := conn.ReadMessage()
if err != nil { if err != nil {
log.Println(err) log.Println("ws/user.go ", err)
conn.Close()
return return
} }

Loading…
Cancel
Save