TsgcWSAPIServer_WebAuthn메서드 › KeepAlive

KeepAlive Method

인증된 세션이 만료되는 것을 방지하기 위해 지정된 연결에서 keep-alive ping을 보냅니다.

구문

procedure KeepAlive(const aConnection: TsgcWSConnection; const aMessage: string);

Parameters

NameType설명
aConnectionconst TsgcWSConnectionkeep-alive 메시지가 전달되어야 하는 연결.
aMessageconst stringkeep-alive와 함께 전송되는 선택적 페이로드입니다. 비어 있으면 프로토콜에 정의된 ping이 사용됩니다.

설명

짧은 수명의 토큰이 클라이언트가 유휴 상태일 때 무효화되지 않도록 연결과 연관된 WebAuthn 세션의 타임스탬프를 새로 고칩니다. 장기 연결이 인증된 상태를 유지해야 할 때 타이머에서 주기적으로 호출하십시오.

예제

sgcWSAPIServer_WebAuthn1.KeepAlive(aConnection, 'ping');

메서드로 돌아가기