Compare commits
No commits in common. "10d3c1fde8f206b24e0f6adfc720e9b1b9375a67" and "3ce2313c5a64dd547376af00925b3dc65c1032e3" have entirely different histories.
10d3c1fde8
...
3ce2313c5a
|
@ -4,7 +4,6 @@ interface SocketOptions {
|
|||
allowHalfOpen?: boolean;
|
||||
remoteAddress?: string;
|
||||
remotePort?: number;
|
||||
remotePublicKey?: Uint8Array;
|
||||
write?: (this: Duplex<any, any, any, any, true, true, DuplexEvents<any, any>>, data: any, cb: Callback) => void;
|
||||
}
|
||||
export default class Socket extends Duplex {
|
||||
|
@ -15,8 +14,7 @@ export default class Socket extends Duplex {
|
|||
bufferSize: any;
|
||||
readable: true;
|
||||
writable: true;
|
||||
remotePublicKey: Uint8Array;
|
||||
constructor({ allowHalfOpen, remoteAddress, remotePort, remotePublicKey, write, }?: SocketOptions);
|
||||
constructor({ allowHalfOpen, remoteAddress, remotePort, write, }?: SocketOptions);
|
||||
private _connecting;
|
||||
get connecting(): boolean;
|
||||
get readyState(): string;
|
||||
|
|
|
@ -9,13 +9,11 @@ class Socket extends streamx_1.Duplex {
|
|||
remotePort;
|
||||
remoteFamily;
|
||||
bufferSize;
|
||||
remotePublicKey;
|
||||
constructor({ allowHalfOpen = false, remoteAddress, remotePort, remotePublicKey, write, } = {}) {
|
||||
constructor({ allowHalfOpen = false, remoteAddress, remotePort, write, } = {}) {
|
||||
super({ write });
|
||||
this._allowHalfOpen = allowHalfOpen;
|
||||
this.remoteAddress = remoteAddress;
|
||||
this.remotePort = remotePort;
|
||||
this.remotePublicKey = remotePublicKey;
|
||||
if (remoteAddress) {
|
||||
const type = Socket.isIP(remoteAddress);
|
||||
if (!type) {
|
||||
|
|
|
@ -9,7 +9,6 @@ interface SocketOptions {
|
|||
allowHalfOpen?: boolean;
|
||||
remoteAddress?: string;
|
||||
remotePort?: number;
|
||||
remotePublicKey?: Uint8Array;
|
||||
write?: (
|
||||
this: Duplex<any, any, any, any, true, true, DuplexEvents<any, any>>,
|
||||
data: any,
|
||||
|
@ -27,20 +26,17 @@ export default class Socket extends Duplex {
|
|||
|
||||
declare readable: true;
|
||||
declare writable: true;
|
||||
public remotePublicKey: Uint8Array;
|
||||
|
||||
constructor({
|
||||
allowHalfOpen = false,
|
||||
remoteAddress,
|
||||
remotePort,
|
||||
remotePublicKey,
|
||||
write,
|
||||
}: SocketOptions = {}) {
|
||||
super({ write });
|
||||
this._allowHalfOpen = allowHalfOpen;
|
||||
this.remoteAddress = remoteAddress;
|
||||
this.remotePort = remotePort;
|
||||
this.remotePublicKey = remotePublicKey;
|
||||
|
||||
if (remoteAddress) {
|
||||
const type = Socket.isIP(remoteAddress);
|
||||
|
|
Loading…
Reference in New Issue