[jitsi-users] EventListeners


#1

I've been working with Jitsi meet for a while but I cannot get the event Listener for incommingMessage to work.

Could someone show me the exact format as I currently call it like so:

api.addEventListeners({incomingMessage: chatRecieved});

with the chatRecieved function simply printing to console

But it never gets called.

I am able to use the execute command feature however so I know the api object is correct

Thanks


#2

The events interface is described in the documentation[1]. Maybe I am missing something javascript and these are equivalent in some cases, but the correct syntax seems to be:
api.addEventListeners("incomingMessage", chatReceived);

Regards
Boris

[1] https://github.com/jitsi/jitsi-meet/blob/master/doc/api.md#controlling-embedded-jitsi-meet-conference

ยทยทยท

On 27/03/15 18:59, Louis2.Gacke wrote:

I've been working with Jitsi meet for a while but I cannot get the
event Listener for incommingMessage to work.

Could someone show me the exact format as I currently call it like so:

api.addEventListeners({incomingMessage: chatRecieved});