PabloDK
PabloDK

Reputation: 2499

Send pong frame via WebSocket in javascript/NodeJS?

I can't find any example of how I send a PONG response in javascript/NodeJS in regards to a WebSocket connection (back to a server which requires it - after it send a PING request)?

Upvotes: 1

Views: 2574

Answers (1)

Do-do-new
Do-do-new

Reputation: 982

Most likely you are using https://github.com/websockets/ws

Readme says:

Pong messages are automatically sent in response to ping messages as required by the spec.

Upvotes: 1

Related Questions