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
|
rhead
|
||||||
(\pconn -> do
|
(\pconn -> do
|
||||||
conn <- WS.acceptRequestWith pconn ar
|
conn <- WS.acceptRequestWith pconn ar
|
||||||
WS.forkPingThread conn 30
|
WS.withPingThread conn 30 (pure ()) $
|
||||||
runInIO $ runReaderT inner conn)
|
runInIO $ runReaderT inner conn)
|
||||||
src
|
src
|
||||||
sink
|
sink
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-websockets
|
name: yesod-websockets
|
||||||
version: 0.3.0.2
|
version: 0.3.0.3
|
||||||
synopsis: WebSockets support for Yesod
|
synopsis: WebSockets support for Yesod
|
||||||
homepage: https://github.com/yesodweb/yesod
|
homepage: https://github.com/yesodweb/yesod
|
||||||
license: MIT
|
license: MIT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user