Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ isSocketError
Function
isSocketError
packages/effect/src/unstable/socket/Socket.ts:215–215 ·
view source on GitHub ↗
(u: unknown)
Source
from the content-addressed store, hash-verified
213
* @since 4.0.0
214
*/
215
export
const
isSocketError = (u: unknown): u is SocketError => Predicate.hasProperty(u, SocketErrorTypeId)
216
217
/**
218
* Typed error
for
failures that occur
while
reading from a socket.
Callers
2
is
Method · 0.85
runRaw
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected