put identity name into handshake
parent
7b9af3ba47
commit
185aa45e4f
|
|
@ -158,7 +158,9 @@ class STPSocket extends EventEmitter {
|
||||||
|
|
||||||
handshake() {
|
handshake() {
|
||||||
const pk = this.identity.publicKey;
|
const pk = this.identity.publicKey;
|
||||||
const packet = new KeyExchangePacket(pk);
|
const packet = new KeyExchangePacket(pk, {
|
||||||
|
name: this.identity.name
|
||||||
|
});
|
||||||
const buffer = packet.toBuffer();
|
const buffer = packet.toBuffer();
|
||||||
this.tcpSocket.write(buffer);
|
this.tcpSocket.write(buffer);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in New Issue