C# 클래스 Assets.Scripts.Services.Communication.WebSocketService

상속: MonoSingleton
파일 보기 프로젝트 열기: maximecharron/GLO-3002-Frima 1 사용 예제들

공개 메소드들

메소드 설명
AddInboundInterceptor ( ICommandInterceptor interceptor, Type commandType ) : void
AddOutboundInterceptor ( ICommandInterceptor interceptor, Type commandType ) : void
Connect ( ) : void
OnDestroy ( ) : void
RegisterCommand ( string commandName, Action callbackMethod, Type dtoType ) : void
SendCommand ( CommandDTO commandDTO, bool interceptable = true ) : void
UnregisterCommand ( string commandName, Action callbackMethod ) : void

비공개 메소드들

메소드 설명
DispatchBufferedCommands ( ) : void
DispatchCommand ( string jsonData ) : bool
DispatchIncomingCommandToInterceptors ( CommandDTO commandDTO ) : bool
DispatchOutgoingCommandToInterceptors ( CommandDTO commandDTO ) : bool
KeepConnectionAlive ( ) : void
ReceiveCommands ( ) : void
Start ( ) : void
Update ( ) : void

메소드 상세

AddInboundInterceptor() 공개 메소드

public AddInboundInterceptor ( ICommandInterceptor interceptor, Type commandType ) : void
interceptor ICommandInterceptor
commandType System.Type
리턴 void

AddOutboundInterceptor() 공개 메소드

public AddOutboundInterceptor ( ICommandInterceptor interceptor, Type commandType ) : void
interceptor ICommandInterceptor
commandType System.Type
리턴 void

Connect() 공개 메소드

public Connect ( ) : void
리턴 void

OnDestroy() 공개 메소드

public OnDestroy ( ) : void
리턴 void

RegisterCommand() 공개 메소드

public RegisterCommand ( string commandName, Action callbackMethod, Type dtoType ) : void
commandName string
callbackMethod Action
dtoType System.Type
리턴 void

SendCommand() 공개 메소드

public SendCommand ( CommandDTO commandDTO, bool interceptable = true ) : void
commandDTO Assets.Scripts.Services.Communication.DTOs.CommandDTO
interceptable bool
리턴 void

UnregisterCommand() 공개 메소드

public UnregisterCommand ( string commandName, Action callbackMethod ) : void
commandName string
callbackMethod Action
리턴 void