change defaultConfig - set path to /
fix declaration file
This commit is contained in:
parent
3a1604d155
commit
86c2c65db7
18
index.d.ts
vendored
18
index.d.ts
vendored
@ -12,15 +12,15 @@ declare type Optional<T> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
declare interface IConfig {
|
declare interface IConfig {
|
||||||
readonly port: number;
|
readonly port?: number;
|
||||||
readonly expire_timeout: number;
|
readonly expire_timeout?: number;
|
||||||
readonly alive_timeout: number;
|
readonly alive_timeout?: number;
|
||||||
readonly key: string;
|
readonly key?: string;
|
||||||
readonly path: string;
|
readonly path?: string;
|
||||||
readonly concurrent_limit: number;
|
readonly concurrent_limit?: number;
|
||||||
readonly allow_discovery: boolean;
|
readonly allow_discovery?: boolean;
|
||||||
readonly proxied: boolean | string;
|
readonly proxied?: boolean | string;
|
||||||
readonly cleanup_out_msgs: number;
|
readonly cleanup_out_msgs?: number;
|
||||||
readonly ssl?: {
|
readonly ssl?: {
|
||||||
key: string;
|
key: string;
|
||||||
cert: string;
|
cert: string;
|
||||||
|
@ -20,7 +20,7 @@ const defaultConfig: IConfig = {
|
|||||||
expire_timeout: 5000,
|
expire_timeout: 5000,
|
||||||
alive_timeout: 60000,
|
alive_timeout: 60000,
|
||||||
key: "peerjs",
|
key: "peerjs",
|
||||||
path: "/myapp",
|
path: "/",
|
||||||
concurrent_limit: 5000,
|
concurrent_limit: 5000,
|
||||||
allow_discovery: false,
|
allow_discovery: false,
|
||||||
proxied: false,
|
proxied: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user