We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f7ac7b commit c41e687Copy full SHA for c41e687
src/components/CommsManager.ts
@@ -67,9 +67,10 @@ export default class CommsManager {
67
}
68
69
// Singleton behavior
70
- public static getInstance(): CommsManager {
+ public static getInstance(address?: string): CommsManager {
71
+ const newAddress = address ? address : "ws://127.0.0.1:7163"
72
if (!CommsManager.instance) {
- CommsManager.instance = new CommsManager("ws://127.0.0.1:7163");
73
+ CommsManager.instance = new CommsManager(newAddress);
74
75
return CommsManager.instance;
76
0 commit comments