Skip to content

Commit

Permalink
closes #209
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Dec 29, 2023
1 parent b76337d commit cc3dd8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/Network/WebSockets/Connection.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
--------------------------------------------------------------------------------
-- | This module exposes connection internals and should only be used if you
-- really know what you are doing.
-- | This module exposes connection internals
{-# LANGUAGE OverloadedStrings #-}
module Network.WebSockets.Connection
( PendingConnection (..)
Expand Down Expand Up @@ -454,4 +453,4 @@ pingThread conn n action

ignore e = case fromException e of
Just async -> throwIO (async :: AsyncException)
Nothing -> return ()
Nothing -> return ()
4 changes: 2 additions & 2 deletions src/Network/WebSockets/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ runApp socket opts app =

--------------------------------------------------------------------------------
-- | Turns a socket, connected to some client, into a 'PendingConnection'. The
-- 'PendingConnection' should be closed using 'Stream.close' later.
-- 'PendingConnection' should be closed using 'pendingStream' and 'Stream.close' later.
makePendingConnection
:: Socket -> ConnectionOptions -> IO PendingConnection
makePendingConnection socket opts = do
Expand All @@ -171,4 +171,4 @@ makePendingConnectionFromStream stream opts = do
, pendingRequest = request
, pendingOnAccept = \_ -> return ()
, pendingStream = stream
}
}

0 comments on commit cc3dd8b

Please sign in to comment.