tidwall / SwiftWebSocket

Fast Websockets in Swift for iOS and OSX
MIT License
1.53k stars 244 forks source link

Send pongs and receive ping events. #159

Closed 0xcodedead closed 3 years ago

0xcodedead commented 3 years ago

Currently, only pong frames are received, but please make it to receive ping frames and transmit pong frames.

The client app needs to receive a ping frame and transmit a pong frame, which is not possible in the current implementation.

Is my understanding correct?

0xcodedead commented 3 years ago

Currently, only pong frames are received, but please make it to receive ping frames and transmit pong frames.

The client app needs to receive a ping frame and transmit a pong frame, which is not possible in the current implementation.

Is my understanding correct?

I read the source code. I checked that SwiftWebSocket sends a pong frame when receiving a ping frame from the server.