Skip to content

Commit be65422

Browse files
committed
WIP
1 parent 997f395 commit be65422

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/QUICServer.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from './types';
1111
import type { Header } from './native/types';
1212
import type QUICConnectionMap from './QUICConnectionMap';
13-
import type { QUICConfig, TlsConfig } from './config';
13+
import type { QUICConfig } from './config';
1414
import type { QUICServerConnectionEvent } from './events';
1515
import Logger from '@matrixai/logger';
1616
import { running } from '@matrixai/async-init';
@@ -70,8 +70,8 @@ class QUICServer extends EventTarget {
7070

7171
public constructor({
7272
crypto,
73-
socket,
7473
config,
74+
socket,
7575
resolveHostname = utils.resolveHostname,
7676
reasonToCode,
7777
codeToReason,
@@ -84,11 +84,11 @@ class QUICServer extends EventTarget {
8484
key: ArrayBuffer;
8585
ops: Crypto;
8686
};
87+
config: Partial<QUICConfig & {
88+
key: string | Array<string> | Uint8Array | Array<Uint8Array>;
89+
cert: string | Array<string> | Uint8Array | Array<Uint8Array>;
90+
}>;
8791
socket?: QUICSocket;
88-
// This actually requires TLS
89-
// You have to specify these some how
90-
// We can force it
91-
config: Partial<QUICConfig> & { tlsConfig: TlsConfig };
9292
resolveHostname?: (hostname: Hostname) => Host | PromiseLike<Host>;
9393
reasonToCode?: StreamReasonToCode;
9494
codeToReason?: StreamCodeToReason;

0 commit comments

Comments
 (0)