Remove the use of forkPingThread in Yesod.WebSockets and replaced it with withPingThread
This commit is contained in:
parent
bcae4c99b1
commit
ead5d3388f
@ -117,8 +117,8 @@ webSocketsOptionsWith wsConnOpts buildAr inner = do
|
||||
rhead
|
||||
(\pconn -> do
|
||||
conn <- WS.acceptRequestWith pconn ar
|
||||
WS.forkPingThread conn 30
|
||||
runInIO $ runReaderT inner conn)
|
||||
WS.withPingThread conn 30 (pure ()) $
|
||||
runInIO $ runReaderT inner conn)
|
||||
src
|
||||
sink
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: yesod-websockets
|
||||
version: 0.3.0.2
|
||||
version: 0.3.0.3
|
||||
synopsis: WebSockets support for Yesod
|
||||
homepage: https://github.com/yesodweb/yesod
|
||||
license: MIT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user