Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Jan 9, 2024
1 parent 1b4d38e commit 0678212
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/event-engine/dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class EventEngineDispatcher extends Dispatcher<effects.Effects, Dependenc

this.on(
effects.emitEvents.type,
asyncHandler( async (payload, _, { emitEvents }) => {
asyncHandler(async (payload, _, { emitEvents }) => {
if (payload.length > 0) {
emitEvents(payload);
}
Expand Down
4 changes: 3 additions & 1 deletion src/event-engine/presence/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ export const delayedHeartbeat = createManagedEffect(
(context: HeartbeatReconnectingStateContext) => context,
);

export type Effects = MapOf<typeof heartbeat | typeof leave | typeof emitStatus |typeof wait | typeof delayedHeartbeat>;
export type Effects = MapOf<
typeof heartbeat | typeof leave | typeof emitStatus | typeof wait | typeof delayedHeartbeat
>;
2 changes: 1 addition & 1 deletion src/event-engine/presence/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const left = createEvent('LEFT', (channels: string[], groups: string[]) =

export const leftAll = createEvent('LEFT_ALL', () => ({}));

export const heartbeatSuccess = createEvent('HEARTBEAT_SUCCESS', (statusCode: number) => ({ statusCode}));
export const heartbeatSuccess = createEvent('HEARTBEAT_SUCCESS', (statusCode: number) => ({ statusCode }));

export const heartbeatFailure = createEvent('HEARTBEAT_FAILURE', (error: PubNubError) => error);

Expand Down

0 comments on commit 0678212

Please sign in to comment.