This message was deleted.
# helpdesk
s
This message was deleted.
b
1). There are two ways to
sendData
from a
RoomServerClient
here, but I only see one of them referenced in the docs, are they both supported? I'm trying to send a data channel message with a
topic
via the
options
argument, but I'm not seeing the topic come through client side, it's always undefined. Let me know if code snippets would be helpful.
2). I'm sending data channel messages (without a
topic
if that matters because of the above issue I'm having), and any time I send one, it results in an empty chat message being added to the chat prefab looking like this:
Is that expected?
m
cc @polite-kilobyte-67570
d
topics are not yet supported. we've added them to the protocol but server is not currently implementing them.
but yes, both forms of
sendData
are supported. It's either sending it to a select set of recipients, or everyone in the room
p
if you are using the chat prefab as is, then it will listen to a specific topic, which is
lk-chat-topic
defined here. you can customize that of course by creating your own chat with a different (or no) topic. The chat messages for the chat prefab also satisfy a chat message interface (here), so that the chat prefab understands them. AFAIK topics should (and do) work without a problem already from client to client. just server-sdk to client is not working as of now
I’ll look into why we would be adding empty chat messages on unrelated data messages, that looks like a bug!
b
AFAIK topics should (and do) work without a problem already from client to client
Yeah I'm sending some data messages client to client and that seems to be working as expected Good to know on topics not being supported server side, do you have an idea of when they will be supported? Also thanks for looking into those empty chat messages!
p
@billions-summer-21168 there was a bug in the message handling that would lead to topics that were
undefined
to be interpreted as chat messages. This is fixed in
@livekit/components-react@1.0.5
. Cloud server support for topics should be available sometime this week!
🙌 1
🔥 3
b
Excellent, thank you for fixing that!