change defaultConfig - set path to /

fix declaration file
This commit is contained in:
afrokick 2020-03-20 04:24:33 +03:00
parent 3a1604d155
commit 86c2c65db7
2 changed files with 10 additions and 10 deletions

18
index.d.ts vendored
View File

@ -12,15 +12,15 @@ declare type Optional<T> = {
};
declare interface IConfig {
readonly port: number;
readonly expire_timeout: number;
readonly alive_timeout: number;
readonly key: string;
readonly path: string;
readonly concurrent_limit: number;
readonly allow_discovery: boolean;
readonly proxied: boolean | string;
readonly cleanup_out_msgs: number;
readonly port?: number;
readonly expire_timeout?: number;
readonly alive_timeout?: number;
readonly key?: string;
readonly path?: string;
readonly concurrent_limit?: number;
readonly allow_discovery?: boolean;
readonly proxied?: boolean | string;
readonly cleanup_out_msgs?: number;
readonly ssl?: {
key: string;
cert: string;

View File

@ -20,7 +20,7 @@ const defaultConfig: IConfig = {
expire_timeout: 5000,
alive_timeout: 60000,
key: "peerjs",
path: "/myapp",
path: "/",
concurrent_limit: 5000,
allow_discovery: false,
proxied: false,