Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IConnectionListener

커넥션에이전트의 모든 결과 또는 알림 인터페이스

Hierarchy

  • IConnectionListener

Index

Methods

Optional OnAllChannelCountInfo

  • GetAllChannelCountInfo()의 결과

    Parameters

    Returns void

Optional OnAllChannelInfo

  • GetAllChannelInfo()의 결과

    Parameters

    • connection: ConnectionAgent

      GetAllChannelInfo()를 요청한 커넥션에이전트

    • resultCode: ResultCodeAllChannelInfo

      GetAllChannelInfo의 결과 코드

    • allChannelInfo: AllChannelInfo

      체널 정보

    Returns void

Optional OnAuthentication

  • Authentication()의 결과

    Parameters

    • connection: ConnectionAgent

      Authentication()을 요청한 커넥션에이전트

    • resultCode: ResultCodeAuth

      인증의 결과 코드

    • loginedUserInfoList: Array<LoginedUserInfo>

      서버에 남아있는 로그인 정보 목록

    • message: string

      서버로부터 받은 메세지, 인증 실패 이유 등

    • payload: Payload

      서버로 부터 받은 추가 정보

    Returns void

Optional OnChannelCountInfo

  • GetChannelCountInfo()의 결과

    Parameters

    • connection: ConnectionAgent

      GetChannelCountInfo()를 요청한 커넥션에이전트

    • resultCode: ResultCodeChannelCountInfo

      GetChannelCountInfo()의 결과 코드

    • channelCountInfo: ChannelCountInfo

      체널의 유저와 방 개수

    Returns void

Optional OnChannelInfo

Optional OnChannelList

  • GetChannelList()의 결과

    Parameters

    • connection: ConnectionAgent

      GetChannelList()를 요청한 커넥션에이전트

    • resultCode: ResultCodeChannelList

      GetChannelList()의 결과 코드

    • channelIdList: Array<string>

      체널 목록

    Returns void

Optional OnConnect

Optional OnDisconnect

  • Disconnect()의 결과 또는 또는 강제 접속종료 알림

    Parameters

    • connection: ConnectionAgent

      Disconnect()를 요청한 커넥션에이전트

    • resultCode: ResultCodeDisconnect

      Disconnect()의 결과 코드

    • reason: string

      종료 이유. ConnectionAgent.Disconnect()에 인자로 넘긴 이유

    • force: boolean

      강제 종료 여부

    • payload: Payload

      서버로 부터 받은 추가 정보

    Returns void

Optional OnErrorCommand

  • 오류 발생

    Parameters

    • connection: ConnectionAgent

      오류 발생 한 커넥션에이전트

    • errorCode: ErrorCode

      에러 코드

    • msgName: string

      에러가 발생한 메세지의 이름

    Returns void

Generated using TypeDoc