Skip to content

Commit fe97243

Browse files
authored
fix(typings): make Manager#opts public (#1437)
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
1 parent 4922e39 commit fe97243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export class Manager extends Emitter {
279279
_reconnecting: boolean;
280280

281281
private readonly uri: string;
282-
private readonly opts: Partial<ManagerOptions>;
282+
public opts: Partial<ManagerOptions>;
283283

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

0 commit comments

Comments
 (0)