{
  "version": 3,
  "sources": ["../src/Protocol.ts"],
  "sourcesContent": ["/**\n * Colyseus protocol codes range between 0~100\n * Use codes between 0~127 for lesser throughput (1 byte)\n */\nexport const Protocol = {\n  // Room-related (10~19)\n  JOIN_ROOM: 10,\n  ERROR: 11,\n  LEAVE_ROOM: 12,\n  ROOM_DATA: 13,\n  ROOM_STATE: 14,\n  ROOM_STATE_PATCH: 15,\n  ROOM_DATA_SCHEMA: 16, // DEPRECATED: used to send schema instances via room.send()\n  ROOM_DATA_BYTES: 17,\n  PING: 18,\n} as const;\nexport type Protocol = typeof Protocol[keyof typeof Protocol];\n\n/**\n * HTTP MatchMaking Error Codes\n */\nexport const ErrorCode = {\n  MATCHMAKE_NO_HANDLER: 520,\n  MATCHMAKE_INVALID_CRITERIA: 521,\n  MATCHMAKE_INVALID_ROOM_ID: 522,\n  MATCHMAKE_UNHANDLED: 523, // generic exception during onCreate/onJoin\n  MATCHMAKE_EXPIRED: 524, // generic exception during onCreate/onJoin\n  AUTH_FAILED: 525,\n  APPLICATION_ERROR: 526,\n\n  INVALID_PAYLOAD: 4217,\n} as const;\nexport type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];\n\n/**\n * WebSocket close codes\n * (See https://github.com/Luka967/websocket-close-codes)\n */\nexport const CloseCode = {\n  NORMAL_CLOSURE: 1000,\n  GOING_AWAY: 1001,\n  NO_STATUS_RECEIVED: 1005,\n  ABNORMAL_CLOSURE: 1006,\n\n  CONSENTED: 4000,\n  SERVER_SHUTDOWN: 4001,\n  WITH_ERROR: 4002,\n  FAILED_TO_RECONNECT: 4003,\n\n  MAY_TRY_RECONNECT: 4010,\n} as const;\nexport type CloseCode = typeof CloseCode[keyof typeof CloseCode];\n"],
  "mappings": ";AAIO,IAAM,WAAW;AAAA;AAAA,EAEtB,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,kBAAkB;AAAA;AAAA,EAClB,iBAAiB;AAAA,EACjB,MAAM;AACR;AAMO,IAAM,YAAY;AAAA,EACvB,sBAAsB;AAAA,EACtB,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA,EAC3B,qBAAqB;AAAA;AAAA,EACrB,mBAAmB;AAAA;AAAA,EACnB,aAAa;AAAA,EACb,mBAAmB;AAAA,EAEnB,iBAAiB;AACnB;AAOO,IAAM,YAAY;AAAA,EACvB,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAElB,WAAW;AAAA,EACX,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,qBAAqB;AAAA,EAErB,mBAAmB;AACrB;",
  "names": []
}
