Thanks to visit codestin.com
Credit goes to github.com

Skip to content

No ChatMessage event is triggered since the release of v2.9.0 #1158

@lebaudantoine

Description

@lebaudantoine

Select which package(s) are affected

@livekit/components-react, @livekit/components-core

Describe the bug

Expected Behavior

When a participant sends a message using the send function from the useChat hook, I expect a RoomEvent.ChatMessage to be triggered.

Actual Behavior

Since version v2.9.0, the ChatMessage event no longer seems to be triggered.
Did I miss something related to the recent refactoring of the chat API to use text streams?
Is this event no longer supposed to be emitted?

Reproduction

create a room with 2 participants https://meet.livekit.io/, open the console, from one participant send a message.

Logs

System Info

System:
    OS: macOS 13.0
    CPU: (12) arm64 Apple M2 Pro
    Memory: 120.28 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 22.13.0 - ~/.nvm/versions/node/v22.13.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.13.0/bin/npm
    pnpm: 9.5.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 136.0.7103.114
    Safari: 16.1
  npmPackages:
    @livekit/components-react: 2.9.0 => 2.9.0 
    @livekit/components-styles: 1.1.4 => 1.1.4 
    @livekit/track-processors: 0.5.6 => 0.5.6 
    livekit-client: 2.11.4 => 2.11.4

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions