fix(core): update
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import * as plugins from './smartuniverse.plugins';
|
||||
import * as interfaces from './interfaces';
|
||||
import * as plugins from './smartuniverse.plugins.js';
|
||||
import * as interfaces from './interfaces/index.js';
|
||||
|
||||
import { ClientUniverse } from '.';
|
||||
import { ClientUniverseMessage } from './smartuniverse.classes.client.universemessage';
|
||||
import { ReactionRequest } from './smartuniverse.classes.event.reactionrequest';
|
||||
import { ReactionResponse } from './smartuniverse.classes.event.reactionresponse';
|
||||
import { ClientUniverse } from './index.js';
|
||||
import { ClientUniverseMessage } from './smartuniverse.classes.client.universemessage.js';
|
||||
import { ReactionRequest } from './smartuniverse.classes.event.reactionrequest.js';
|
||||
import { ReactionResponse } from './smartuniverse.classes.event.reactionresponse.js';
|
||||
|
||||
export class ClientUniverseChannel implements interfaces.IUniverseChannel {
|
||||
// ======
|
||||
@@ -69,12 +69,14 @@ export class ClientUniverseChannel implements interfaces.IUniverseChannel {
|
||||
public async populateSubscriptionToServer() {
|
||||
// lets make sure the channel is connected
|
||||
if (this.status === 'unsubscribed') {
|
||||
const response = await this.clientUniverseRef.smartsocketClient.serverCall<
|
||||
interfaces.ISocketRequest_SubscribeChannel
|
||||
>('subscribeChannel', {
|
||||
name: this.name,
|
||||
passphrase: this.passphrase,
|
||||
});
|
||||
const response =
|
||||
await this.clientUniverseRef.smartsocketClient.serverCall<interfaces.ISocketRequest_SubscribeChannel>(
|
||||
'subscribeChannel',
|
||||
{
|
||||
name: this.name,
|
||||
passphrase: this.passphrase,
|
||||
}
|
||||
);
|
||||
this.status = response.subscriptionStatus;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user