Run an application with ping-pong enabled. Raises PongTimeout if a pong is not received.
Can used with Client and Server connections.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulewebsockets-0.13.0.0Haskell2010
Run an application with ping-pong enabled. Raises PongTimeout if a pong is not received.
Can used with Client and Server connections.
Options for ping-pong
Make sure that the ping interval is less than the pong timeout, for example N/2.
PingPongOptionspingInterval :: IntInterval in seconds
pongTimeout :: IntTimeout in seconds
pingAction :: IO ()Action to perform after sending a ping
Exception type used to kill connections if there is a pong timeout.
Show PongTimeoutDefined in websockets-0.13.0.0 · Network.WebSockets.Connection.PingPongException PongTimeoutDefined in websockets-0.13.0.0 · Network.WebSockets.Connection.PingPongDefault options for ping-pong
Ping every 15 seconds, timeout after 30 seconds