Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KiNGKiMO opened this issue Oct 21, 2023 · 3 comments
Open

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

KiNGKiMO opened this issue Oct 21, 2023 · 3 comments

Comments

@KiNGKiMO
Copy link

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?

@tianyiw2013
Copy link
Contributor

onWebSocketPing
onWebSocketPong

@KiNGKiMO
Copy link
Author

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

@shunhua
Copy link

shunhua commented Nov 2, 2023

onWebSocketPing onWebSocketPong

怎么使用?用的TP+workerman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants