-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding trust ping events and trust ping command (#1182)
Signed-off-by: Kim Ebert <[email protected]>
- Loading branch information
1 parent
59d1982
commit fd006f2
Showing
6 changed files
with
159 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import type { BaseEvent } from '../../agent/Events' | ||
import type { TrustPingMessage, TrustPingResponseMessage } from './messages' | ||
import type { ConnectionRecord } from './repository/ConnectionRecord' | ||
|
||
export enum TrustPingEventTypes { | ||
TrustPingReceivedEvent = 'TrustPingReceivedEvent', | ||
TrustPingResponseReceivedEvent = 'TrustPingResponseReceivedEvent', | ||
} | ||
|
||
export interface TrustPingReceivedEvent extends BaseEvent { | ||
type: typeof TrustPingEventTypes.TrustPingReceivedEvent | ||
payload: { | ||
connectionRecord: ConnectionRecord | ||
message: TrustPingMessage | ||
} | ||
} | ||
|
||
export interface TrustPingResponseReceivedEvent extends BaseEvent { | ||
type: typeof TrustPingEventTypes.TrustPingResponseReceivedEvent | ||
payload: { | ||
connectionRecord: ConnectionRecord | ||
message: TrustPingResponseMessage | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters