File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ foreign import addressImpl :: EffectFn1 Server (Nullable Foreign)
147147
148148-- | Attempts to return the bound address of a `Server`.
149149-- |
150- -- | If the `Server` is not listening, no `Nothing` is returned.
150+ -- | If the `Server` is not listening, `Nothing` is returned.
151151-- | If the `Server` is ICP, it will return a `String`.
152152-- | If the `Server` is TCP, it will return an `Address`.
153153address :: Server -> Effect (Maybe (Either Address String ))
@@ -458,7 +458,7 @@ foreign import localPortImpl :: EffectFn1 Socket (Nullable Int)
458458
459459-- | Attempts to return the port a client is connecting on.
460460-- | E.g. if a client connects from `80`,
461- -- | the result would be `Just "80" `.
461+ -- | the result would be `Just 80 `.
462462localPort :: Socket -> Effect (Maybe Int )
463463localPort socket = do
464464 port <- runEffectFn1 localPortImpl socket
You can’t perform that action at this time.
0 commit comments