RTCForge API Reference v1.1.1
    Preparing search index...

    Variable CloseCodeConst

    CloseCode: { GoingAway: 1001; Normal: 1000; PolicyViolation: 1008 } = ...

    WebSocket close codes the server uses when disconnecting peers.

    Type Declaration

    • ReadonlyGoingAway: 1001

      RFC 6455 going-away (1001): endpoint is leaving.

    • ReadonlyNormal: 1000

      RFC 6455 normal closure (1000): orderly shutdown, e.g. reconnection or room expiry.

    • ReadonlyPolicyViolation: 1008

      RFC 6455 policy violation (1008): auth failure, rate/room-full rejection, wrong-node redirect, or kick.