tRPC SSE Chat

tRPC SSE starter

Showcases Server-sent Events + subscription support
View Source on GitHub

Introduction

  • Open inspector and head to Network tab
  • All client requests are handled through HTTP
  • We have a simple backend subscription on new messages that adds the newly added message to the current state