Skip to content

Commit fffba05

Browse files
committed
Test reset data
1 parent d000e5c commit fffba05

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-commsmanager",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"scripts": {

src/components/CommsManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export default class CommsManager {
3131
command: "",
3232
data: { state: "idle" },
3333
});
34+
CommsManager.hostData = undefined;
35+
CommsManager.universe = undefined;
3436
this.subscribe(events.STATE_CHANGED, this.setManagerState);
3537
this.subscribeOnce(events.INTROSPECTION, this.setHostData);
3638

@@ -131,7 +133,6 @@ export default class CommsManager {
131133
// Send messages and manage promises
132134
public async send(message: string, data?: Object): Promise<any> {
133135
const id = uuidv4();
134-
console.warn("Sending message", this.ws)
135136

136137
// Reject with an Error directly if unable to connect
137138
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {

0 commit comments

Comments
 (0)