jaspervdj / websockets

A Haskell library for creating WebSocket-capable servers
http://jaspervdj.be/websockets
BSD 3-Clause "New" or "Revised" License
405 stars 112 forks source link

Add sendPong function #231

Closed flip111 closed 6 months ago

flip111 commented 1 year ago

For full compatibility could a sendPong function be added?

In the spec under 5.5.2 Ping it says:

Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in response, unless it already received a Close frame.

domenkozar commented 7 months ago

See https://github.com/jaspervdj/websockets/pull/217

flip111 commented 7 months ago

Thanks @domenkozar i will leave the issue open because the function is missing from the documentation even though the version which should have it is already published https://hackage.haskell.org/package/websockets-0.12.7.3/docs/Network-WebSockets-Connection.html

domenkozar commented 6 months ago

It was merged a week ago, so the next release will have it.