WS_CLOSE
Close codes the server uses (RFC 6455 section 7.4.1).
Close codes the server uses (RFC 6455 section 7.4.1).
Import#
ts
import { WS_CLOSE } from "@shadow-js/dusk/server";
Signature#
ts
const WS_CLOSE: { readonly NORMAL: 1000; readonly GOING_AWAY: 1001; readonly PROTOCOL_ERROR: 1002; readonly UNSUPPORTED: 1003; readonly NO_STATUS: 1005; readonly ABNORMAL: 1006; readonly INVALID_DATA: 1007; readonly POLICY: 1008; readonly TOO_BIG: 1009; readonly EXTENSION: 1010; readonly INTERNAL: 1011; readonly TRY_AGAIN_LATER: 1013; }