mirror of
https://github.com/Daotin/Web.git
synced 2024-11-01 05:24:46 +08:00
Update 08-session验证,上传图片,websocket通信.md
This commit is contained in:
parent
e991cef257
commit
9f204dbd9a
@ -442,7 +442,7 @@ ws.on('connection', client => {
|
||||
// 数据存放在event.data里面
|
||||
console.log(event.data)
|
||||
}
|
||||
// 客户端主动断开连接
|
||||
// 服务器主动断开连接
|
||||
ws.onclose = function(event){}
|
||||
|
||||
// 连接出错
|
||||
|
Loading…
Reference in New Issue
Block a user