diff --git a/test/test.ts b/test/test.ts index bd0f648..922299e 100644 --- a/test/test.ts +++ b/test/test.ts @@ -74,7 +74,7 @@ tap.test('a second client should be able to subscibe', async () => { tap.test('should receive a message correctly', async () => {}); tap.test('should disconnect the client correctly', async () => { - testClientUniverse.stop(); + await testClientUniverse.stop(); }); tap.test('should end the server correctly', async tools => { diff --git a/ts/smartuniverse.classes.clientuniverse.ts b/ts/smartuniverse.classes.clientuniverse.ts index 34d7504..3c414ab 100644 --- a/ts/smartuniverse.classes.clientuniverse.ts +++ b/ts/smartuniverse.classes.clientuniverse.ts @@ -76,8 +76,8 @@ export class ClientUniverse { await this.checkConnection(); } - public stop() { - this.smartsocketClient.disconnect(); + public async stop() { + await this.smartsocketClient.disconnect(); } /** diff --git a/ts/smartuniverse.classes.reactionrequest.ts b/ts/smartuniverse.classes.reactionrequest.ts new file mode 100644 index 0000000..273776b --- /dev/null +++ b/ts/smartuniverse.classes.reactionrequest.ts @@ -0,0 +1,3 @@ +import * as plugins from './smartuniverse.plugins'; + +export class ReactionRequest {} \ No newline at end of file diff --git a/ts/smartuniverse.classes.reactionresponse.ts b/ts/smartuniverse.classes.reactionresponse.ts new file mode 100644 index 0000000..ed3a80b --- /dev/null +++ b/ts/smartuniverse.classes.reactionresponse.ts @@ -0,0 +1,3 @@ +import * as plugins from './smartuniverse.plugins'; + +export class ReactionResponse {} \ No newline at end of file