Add getPairingId

This commit is contained in:
Sosthene 2025-09-09 11:14:40 +02:00
parent 7d5861b831
commit 31e04da8ab

View File

@ -228,7 +228,16 @@ export class SDKSignerClient {
this.on('message', handler); this.on('message', handler);
}); });
} }
async get_owned_processes(): Promise<ServerResponse> {
async getPairingId(): Promise<ServerResponse> {
const message: ClientMessage = {
type: MessageType.GET_PAIRING_ID,
messageId: this.generateMessageId()
};
return this.sendAndWait(message, MessageType.GET_PAIRING_ID);
}
async getOwnedProcesses(): Promise<ServerResponse> {
const message: ClientMessage = { const message: ClientMessage = {
type: MessageType.GET_MY_PROCESSES, type: MessageType.GET_MY_PROCESSES,
messageId: this.generateMessageId() messageId: this.generateMessageId()