Hi Carlos,
Regarding the timer tag, as you can see, we have tried implementing it but haven’t achieved positive results yet.
It’s possible that the method we’re using to send the signal only works for remote participants and not for the local participant.
I’m sharing the method here so you can take a look and help us identify any issues:
sendSignalToRemoteParticipants(signaData: any, topic: string, destinationIdentities: string[] = []): void
{
console.log('sendSignalToRemoteParticipants(', signaData, topic, destinationIdentities, ')');
const strData = JSON.stringify({ data: signaData });
const data: Uint8Array = new TextEncoder().encode(strData);
const options: DataPublishOptions = { reliable: true, destinationIdentities: destinationIdentities, topic: topic };
this.participantService.publishData(data, options);
}
We are also using this event handler but it accepts only RemoteParticipants or undefined as the participant?
parameter.
room.on(RoomEvent.DataReceived, (payload: Uint8Array, participant?: RemoteParticipant, kind?: DataPacket_Kind, topic?: string)
If you could suggest a better method or alternative implementation, it would be very appreciated.
Best regards,
Matteo