From 048cdcb6820f22cf8c35ba2b57bc30b62e72c521 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 4 Dec 2019 10:51:49 -0800 Subject: [PATCH] quic: fix lint issues PR-URL: https://github.com/nodejs/quic/pull/213 Reviewed-By: Anna Henningsen --- doc/api/quic.md | 5 ++- lib/internal/quic/core.js | 35 ++++++++++--------- lib/internal/quic/util.js | 2 +- test/parallel/test-quic-client-server.js | 2 +- .../parallel/test-quic-http3-client-server.js | 9 ----- 5 files changed, 22 insertions(+), 31 deletions(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index 9ec079e523..8012d6fcf6 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -107,7 +107,7 @@ const { createSocket } = require('quic'); // Create a QuicSocket associated with localhost and port 1234 const socket = createSocket({ port: 1234 }); -const client = client.connect({ +const client = socket.connect({ address: 'example.com', port: 4567, alpn: 'foo' @@ -131,7 +131,7 @@ New instance of `QuicServerSession` are created internally by the `QuicSocket` if it has been configured to listen for new connections using the `listen()` method. -``` +```js const key = getTLSKeySomehow(); const cert = getTLSCertSomehow(); @@ -405,7 +405,6 @@ added: REPLACEME An object containing the local address information for the `QuicSocket` to which the `QuicSession` is currently associated. - #### quicsession.alpnProtocol