Skip to content

magicbell@1.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Feb 16:37
· 656 commits to main since this release
3dad516

Minor Changes

  • #56 8139792 Thanks @smeijer! - feat: add close method to realtime listener

    const listener = magicbell.listen();
    
    listener.forEach((notification) => {
      console.log(notification.data.id);
    });
    
    // stop listening after 5 seconds
    setTimeout(() => {
      listener.close();
    }, 5_000);