diff options
Diffstat (limited to 'ext/net/02_tls.js')
| -rw-r--r-- | ext/net/02_tls.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js index e71bd77f5..1411c6d74 100644 --- a/ext/net/02_tls.js +++ b/ext/net/02_tls.js @@ -24,8 +24,24 @@ function opTlsHandshake(rid) { } class TlsConn extends Conn { + #rid = 0; + + constructor(rid, remoteAddr, localAddr) { + super(rid, remoteAddr, localAddr); + this.#rid = rid; + } + + get rid() { + internals.warnOnDeprecatedApi( + "Deno.TlsConn.rid", + new Error().stack, + "Use `Deno.TlsConn` instance methods instead.", + ); + return this.#rid; + } + handshake() { - return opTlsHandshake(this.rid); + return opTlsHandshake(this.#rid); } } |
