client-sdk-react-native icon indicating copy to clipboard operation
client-sdk-react-native copied to clipboard

useChat send method is not sending the message

Open kasunprabath98 opened this issue 7 months ago • 0 comments

I'm using the following dependencies in my React Native project:

"@livekit/react-native": "^2.7.6", "@livekit/react-native-webrtc": "^125.0.11"

I'm using the useChat hook to send messages through the send() method. It works fine for the first few messages (usually 4–5), but after that, it stops working entirely — no message is sent, and there's no error or exception thrown.

This issue happens consistently. Here's a brief outline of what I'm doing:

  • User joins a room successfully.
  • I use useChat() from @livekit/react-native.
  • I call send({ message: '...' }) whenever the user submits a message.
  • The first few messages go through.
  • Then send() silently fails — no error, no delivery.

I’ve confirmed that the room connection is still active and room.localParticipant is valid when this happens.

kasunprabath98 avatar Jul 24 '25 02:07 kasunprabath98