Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
refactor: renames inicializator to laucher
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossantos74 committed Jul 24, 2023
1 parent 38e53a5 commit 50ab83b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/core/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Core from '.';

describe('Core', () => {
test('should be export Inicializator', () => {
test('should be export Laucher', () => {
expect(Core.Laucher).toBeDefined();
});
});
16 changes: 8 additions & 8 deletions src/core/laucher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ export class Laucher implements DefaultLaucher {
this.roomId = roomId;
this.group = group;

this.logger = new Logger('@superviz/sdk/inicializator');
this.logger = new Logger('@superviz/sdk/laucher');
this.realtime = new AblyRealtimeService(this.apiUrl, this.ablyKey);
this.pubsub = new PubSub(this.realtime);

this.logger.log('Inicializator created');
this.logger.log('laucher created');

this.startRealtime();
}
Expand All @@ -57,7 +57,7 @@ export class Laucher implements DefaultLaucher {
* @returns {void}
*/
public subscribeToPubSubEvent = (event: string, callback: (data: unknown) => void): void => {
this.logger.log('inicializator service @ subscribeToPubSubEvent');
this.logger.log('laucher service @ subscribeToPubSubEvent');
this.pubsub.subscribe(event, callback);
};

Expand All @@ -69,7 +69,7 @@ export class Laucher implements DefaultLaucher {
* @returns {void}
*/
public unsubscribeFromPubSubEvent = (event: string, callback: (data: unknown) => void): void => {
this.logger.log('inicializator service @ unsubscribeFromPubSubEvent');
this.logger.log('laucher service @ unsubscribeFromPubSubEvent');
this.pubsub.unsubscribe(event, callback);
};

Expand All @@ -81,7 +81,7 @@ export class Laucher implements DefaultLaucher {
* @returns {void}
*/
public publishToPubSubEvent = (event: string, data: unknown): void => {
this.logger.log('inicializator service @ publishToPubSubEvent');
this.logger.log('laucher service @ publishToPubSubEvent');
this.pubsub.publish(event, data);
};

Expand All @@ -103,7 +103,7 @@ export class Laucher implements DefaultLaucher {
* @returns {void}
*/
private startRealtime = (): void => {
this.logger.log('inicializator service @ startRealtime');
this.logger.log('laucher service @ startRealtime');

this.realtime.start({
apiKey: this.apiKey,
Expand All @@ -118,8 +118,8 @@ export class Laucher implements DefaultLaucher {

/**
* @function Laucher
* @description create inicializator instance
* @param options - inicializator options
* @description create laucher instance
* @param options - laucher options
* @returns {LaucherFacade}
*/
export default (options: LaucherOptions): LaucherFacade => {
Expand Down

0 comments on commit 50ab83b

Please sign in to comment.