MCPcopy Create free account
hub / github.com/SagerNet/sing-box-dashboard / isTerminalCode

Function isTerminalCode

src/api/stream.ts:28–35  ·  view source on GitHub ↗
(code: Code | undefined)

Source from the content-addressed store, hash-verified

26}
27
28export function isTerminalCode(code: Code | undefined): boolean {
29 return (
30 code === Code.Unimplemented ||
31 code === Code.NotFound ||
32 code === Code.Unauthenticated ||
33 code === Code.PermissionDenied
34 );
35}
36
37export class StreamStore<T> {
38 private listeners = new Set<() => void>();

Callers 5

ShellContentFunction · 0.90
StreamBannerFunction · 0.90
StreamStatesFunction · 0.90
LogsViewFunction · 0.90
loopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected