We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae3a42b commit ad38cbdCopy full SHA for ad38cbd
src/client.ts
@@ -31,6 +31,7 @@ export function createClient(config: {
31
serviceToken?: string;
32
requiresAuth?: boolean;
33
functionsVersion?: string;
34
+ headers?: Record<string, string>;
35
options?: CreateClientOptions;
36
onRedirectToLogin?: () => void;
37
}) {
@@ -43,6 +44,7 @@ export function createClient(config: {
43
44
options,
45
functionsVersion,
46
onRedirectToLogin,
47
+ headers: optionalHeaders,
48
} = config;
49
50
const socketConfig: RoomsSocketConfig = {
@@ -58,6 +60,7 @@ export function createClient(config: {
58
60
});
59
61
62
const headers = {
63
+ ...optionalHeaders,
64
"X-App-Id": String(appId),
65
};
66
0 commit comments