Skip to content

useChat send method is not sending the message #259

@kasunprabath98

Description

@kasunprabath98

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions