Skip to content

Commit 644afc7

Browse files
committed
fixed Typescript errors
1 parent 22ff8bb commit 644afc7

File tree

2 files changed

+5337
-5307
lines changed

2 files changed

+5337
-5307
lines changed

js-src/Websocket.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Channel} from "./Channel";
22
import {AxiosResponse} from "axios";
33

4-
export type Options = { authEndpoint: string, host: string };
4+
export type Options = { authEndpoint: string, host: string, bearerToken: string, auth: any };
55
export type MessageBody = { event: string, channel?: string, data: object };
66

77
export class Websocket {
@@ -137,7 +137,7 @@ export class Websocket {
137137
console.log(`Sending auth request for channel ${channel.name}`)
138138

139139
if (this.options.bearerToken) {
140-
this.options.auth.headers['Authorization'] = 'Bearer ' + this.options.bearerToken;
140+
this.options.auth.headers['Authorization'] = 'Bearer ' + this.options.bearerToken;
141141
}
142142

143143
axios.post(this.options.authEndpoint, {

0 commit comments

Comments
 (0)