atmosphere explorer
at main 20 lines 577 B view raw
1const _websocketCloseReasons = { 2 1000: "Normal Closure", 3 1001: "Going Away", 4 1002: "Protocol Error", 5 1003: "Unsupported Data", 6 1005: "No Status Received", 7 1006: "Abnormal Closure", 8 1007: "Invalid frame payload data", 9 1008: "Policy Violation", 10 1009: "Message too big", 11 1010: "Missing Extension", 12 1011: "Internal Error", 13 1012: "Service Restart", 14 1013: "Try Again Later", 15 1014: "Bad Gateway", 16 1015: "TLS Handshake", 17} as const; 18 19export const websocketCloseReasons = _websocketCloseReasons as typeof _websocketCloseReasons & 20 Record<string, string>;