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

Commit

Permalink
Merge pull request #618 from SuperViz/feat/io
Browse files Browse the repository at this point in the history
feat: up realtime and presences to 30 messages per second
  • Loading branch information
carlossantos74 authored Mar 21, 2024
2 parents 5fc4616 + 13ddf42 commit f9bf6d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/presence-mouse/canvas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class PointersCanvas extends BaseComponent {
...coordinates,
visible: !this.isPrivate,
});
}, 100);
}, 30);

private onMyParticipantMouseOut = (event: MouseEvent): void => {
const { x, y, width, height } = this.canvas.getBoundingClientRect();
Expand Down
2 changes: 1 addition & 1 deletion src/components/presence-mouse/html/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class PointersHTML extends BaseComponent {
*/
private addListeners(): void {
this.pointerMoveObserver = fromEvent(this.container, 'pointermove')
.pipe(throttleTime(200))
.pipe(throttleTime(30))
.subscribe(this.onMyParticipantMouseMove);
this.container.addEventListener('pointerleave', this.onMyParticipantMouseLeave);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/realtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Realtime extends BaseComponent {
}

this.room.emit('message', { name: event, payload: data });
}, 200);
}, 30);

/**
* @function subscribe
Expand Down

0 comments on commit f9bf6d2

Please sign in to comment.