workerman icon indicating copy to clipboard operation
workerman copied to clipboard

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

Open KiNGKiMO opened this issue 8 months ago • 3 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?

KiNGKiMO avatar Oct 21 '23 08:10 KiNGKiMO

onWebSocketPing onWebSocketPong

tianyiw2013 avatar Oct 27 '23 14:10 tianyiw2013

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

KiNGKiMO avatar Oct 27 '23 14:10 KiNGKiMO

onWebSocketPing onWebSocketPong

怎么使用?用的TP+workerman

shunhua avatar Nov 02 '23 13:11 shunhua