MCPcopy Index your code
hub / github.com/Effect-TS/effect / isClean

Method isClean

packages/platform/src/Socket.ts:168–172  ·  view source on GitHub ↗

* @since 1.0.0

(isClean: (code: number) => boolean)

Source from the content-addressed store, hash-verified

166 * @since 1.0.0
167 */
168 static isClean(isClean: (code: number) => boolean) {
169 return function(u: unknown): u is SocketCloseError {
170 return SocketCloseError.is(u) && isClean(u.code)
171 }
172 }
173
174 get message() {
175 if (this.closeReason) {

Callers 1

runRawFunction · 0.80

Calls 1

isMethod · 0.65

Tested by

no test coverage detected