> For the complete documentation index, see [llms.txt](https://socket.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://socket.gitbook.io/docs/3-ke-hu-duan-apiclientapi/3.3-socket/event_pong.md).

# 3.3.24 event:pong

* `ms`(Number)自ping数据包以来经过的毫秒数（即：延迟）。

```javascript
socket.on('pong',(latency)=>{
    //...
})
```

页面翻译有问题？[请戳这里>](https://github.com/veaba/socket.io-docs)
