Skip to content

Commit

Permalink
fix: type for websocket header (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
manchuck authored Aug 9, 2023
1 parent 52fae4a commit 8dd49dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/voice/lib/classes/Endpoint/WebsocketEndpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export class WebsocketEndpoint implements WebsocketEndpointType {
type: 'websocket';
uri: string;
contentType: WebsocketBitrate;
headers?: Array<Record<string, unknown>>;
headers?: Record<string, unknown>;

constructor(
uri: string,
contentType: WebsocketBitrate,
headers?: Array<Record<string, unknown>>,
headers?: Record<string, unknown>,
) {
this.uri = uri;
this.contentType = contentType;
Expand Down
2 changes: 1 addition & 1 deletion packages/voice/lib/types/Endpoint/WebsocketEndpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export type WebsocketEndpoint = {
type: 'websocket';
uri: string;
contentType?: string;
headers?: Array<Record<string, unknown>>;
headers?: Record<string, unknown>;
};

0 comments on commit 8dd49dd

Please sign in to comment.