walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.

Home Page:http://www.workerman.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Websocket worker's onMessage doesn't intercept ping requests.

KiNGKiMO opened this issue · comments

Hello,
If a client sends "ping" request to workerman websocket worker, wrokerman auto replies with "pong" but I cannot catch that ping request at onMessage.

Any idea how to intercept a websocket worker's ping request?

onWebSocketPing
onWebSocketPong

@tianyiw2013
Thank you so much, did not know that existed.

onWebSocketPing onWebSocketPong

怎么使用?用的TP+workerman