Skip to content

Commit 972c511

Browse files
committed
feat: add optional hostname option
1 parent 2d493b9 commit 972c511

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gateway/BaseGateway.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export interface BaseGatewayOptions {
2525
socketTimeout: number;
2626
socketFirstDataTimeout: number;
2727
port: number;
28+
hostname?: string;
2829
closeSocketTimeout: number;
2930
}
3031

@@ -69,7 +70,7 @@ export abstract class BaseGateway extends EventEmitter {
6970
if (!this.server) {
7071
return resolve();
7172
}
72-
this.server.listen(this.options.port, resolve);
73+
this.server.listen(this.options.port, this.options.hostname, resolve);
7374
});
7475
}
7576

0 commit comments

Comments
 (0)