This message was deleted.
# helpdesk
s
This message was deleted.
b
Hello Denis, Have you tried the following:
Copy code
.on(RoomEvent.DataReceived, ...
For future reference, feel free to have a look at the example provided here: https://github.com/livekit/client-sdk-js/blob/main/example/sample.ts#L113 Hope this helps. 🙂
Also, the docs seems to be up to date. Feel free to have a read here: https://docs.livekit.io/client/data-messages/#data-messages
g
Thanks, Pat! Yet I was looking for Golang server example, not JS client. On the docs link, there is a Golang tab. From the example, I cannot figure out where this
OnDataReceived
callback coming from
b
Oh Sorry about that. For Goland, the way I've implemented it was:
Copy code
roomCB := &lksdk.RoomCallback{
		ParticipantCallback: lksdk.ParticipantCallback{
			OnDataReceived: handleOnDataReceived,
		},	
	}
then pass your callback into the
ConnectToRoom
d
Thank you Pat. @green-actor-38098 you are right the Go docs are outdated. We'll get them updated shortly!@
🙌 2
👍 1