How should I handle search when data keeps updating via websockets?

  • I have a real time news feed that keeps updating via websockets
  • Lets say you went to the search bar and typed new york
  • I will fetch all 'new york' related articles from the database
  • But since I am also connected to websockets, when the news sources that I scan change, I push new data items to each connected client
  • How do I handle this?

Questions

  • Should I block the updates?
  • Should I only show 'new york' related new items?