nodeca / tabex

Cross-tab message bus for browsers.
http://nodeca.github.io/tabex/
MIT License
219 stars 19 forks source link

Is the lock not working? #23

Open nieyuyao opened 3 years ago

nieyuyao commented 3 years ago

I opened two tabs at the same time. Unfortunately, I observed that both tabs were successfully locked.

const tabexClient = new tabex.client();
const key = 'lock_test';
tabexClient.lock(key, () => {
     console.log('Acquire lock successfully');
});
nieyuyao commented 3 years ago

Okay, I did observe this problem. 😢