SOCKET_CONFIG: {
    BASE_OPTIONS: {
        autoConnect: false;
        reconnection: true;
        reconnectionAttempts: 5;
        reconnectionDelay: 1000;
    };
    PATHS: {
        chat: "/socket.io/chat";
        drawing: "/socket.io/drawing";
        game: "/socket.io/game";
    };
    URL: any;
} = ...

소켓 설정을 정의한 상수입니다.

Type declaration

  • ReadonlyBASE_OPTIONS: {
        autoConnect: false;
        reconnection: true;
        reconnectionAttempts: 5;
        reconnectionDelay: 1000;
    }

    기본 소켓 옵션

    • ReadonlyautoConnect: false
    • Readonlyreconnection: true
    • ReadonlyreconnectionAttempts: 5
    • ReadonlyreconnectionDelay: 1000
  • ReadonlyPATHS: {
        chat: "/socket.io/chat";
        drawing: "/socket.io/drawing";
        game: "/socket.io/game";
    }

    네임스페이스별 경로

    • Readonlychat: "/socket.io/chat"
    • Readonlydrawing: "/socket.io/drawing"
    • Readonlygame: "/socket.io/game"
  • ReadonlyURL: any

    소켓 서버 URL

MMNEPVFCICPMFPCPTTAAATR