library · inferred from evidence
StreamChat
A library used to create chat tokens and manage chat functionality.
- stream-chat: tokens can only be created server-side using the API Secret (Next.js API route)
StreamChat.getInstance is a singleton: it creates the client only on the first call in the runtime, and later calls with different parameters are ignored. If the client was first initialized anywhere without the secret value, for example in