Skip to content

Commit c394374

Browse files
authored
Merge pull request #9 from kuzzleio/feat/add-all-sdk-protocol-options
feat: add all sdk protocol options
2 parents 846e222 + e7f7da4 commit c394374

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/types/Backend.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { HttpRoutes, JSONObject } from 'kuzzle-sdk';
2+
13
export enum KuzzleProtocol {
24
HTTP = 'http',
35
WEBSOCKET = 'websocket',
@@ -9,6 +11,10 @@ export interface Backend {
911
options: {
1012
port: number;
1113
sslConnection: boolean;
14+
headers?: JSONObject;
15+
reconnectionDelay?: number;
16+
pingInterval?: number;
17+
customRoutes?: HttpRoutes;
1218
};
1319
}
1420

0 commit comments

Comments
 (0)