Skip to content

Commit

Permalink
fix(typings): make Manager#opts public (#1437)
Browse files Browse the repository at this point in the history
As stated in the [documentation][1], the query option can be set by
setting `socket.io.opts` but `opts` was private and readonly.

[1]: https://socket.io/docs/v3/client-api/#With-query-option
  • Loading branch information
MickL committed Jan 11, 2021
1 parent 4922e39 commit fe97243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class Manager extends Emitter {
_reconnecting: boolean;

private readonly uri: string;
private readonly opts: Partial<ManagerOptions>;
public opts: Partial<ManagerOptions>;

private nsps: Record<string, Socket> = {};
private subs: Array<ReturnType<typeof on>> = [];
Expand Down

0 comments on commit fe97243

Please sign in to comment.