While the Skylink JS SDK itself does not provide a way to distinguish which peer is currently talking, this can be done by analysing the remote stream.

Here's a demo you may wish to refer to: Active Speakers with SkylinkJS

You can use the computed value of the remote stream to identify which stream is the 'loudest' at any given point and thereby pin point the active speaker.