Merge branch 'oobjectt-composer-handshake'

This commit is contained in:
dank074 2022-12-27 00:34:04 -06:00
commit e9bce32169
5 changed files with 49 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -436,4 +436,6 @@ export class OutgoingHeader
public static HARVEST_PET = 1521;
public static GROUP_UNFAVORITE = 1820;
public static NEW_USER_EXPERIENCE_GET_GIFTS = 1822;
public static HANDSHAKE_INIT_DIFFIE = 3110;
public static HANDSHAKE_COMPLETE_DIFFIE = 773;
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../api';
export class CompleteDiffieHandshakeMessageComposer implements IMessageComposer<ConstructorParameters<typeof CompleteDiffieHandshakeMessageComposer>>
{
private _data: ConstructorParameters<typeof CompleteDiffieHandshakeMessageComposer>;
constructor(publicKey: string)
{
this._data = [publicKey];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../api';
export class InitDiffieHandshakeMessageComposer implements IMessageComposer<ConstructorParameters<typeof InitDiffieHandshakeMessageComposer>>
{
private _data: ConstructorParameters<typeof InitDiffieHandshakeMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -1,7 +1,9 @@
export * from './AuthenticationMessageComposer';
export * from './ClientHelloMessageComposer';
export * from './CompleteDiffieHandshakeMessageComposer';
export * from './DisconnectMessageComposer';
export * from './InfoRetrieveMessageComposer';
export * from './InitDiffieHandshakeMessageComposer';
export * from './PongMessageComposer';
export * from './SSOTicketMessageComposer';
export * from './UniqueIDMessageComposer';