I’d like to send a message from alarm pipeline script block to all active session.
For each alarm I want to send the description of tag (converted to speech wav file) as a message and in perspective message handler use system.util.playSound() to play it for user.
As I read document it seems gateway scope system.util.send message() can’t send message to perspective session.
And system.perspective.sendMessage() doesn’t work in gateway scripting scope. So what is the workaround for this?
system.util.playSoundClip() won’t work in this situation because that function will run on the gateway, so the gateway will play the sound not the actual sessions.
As for the second part of your question, system.util.sendMessage() is getting updated as part of 8.0.8 and will allow you to specify “S” for session scope.
Nope, the gateway is. It’ll happen to work if you’re on the same machine, because, for bizarre legacy reasons, we both allow system.util.playSoundClip to work on the gateway, and Windows allows background services to play sounds, but it’s 100% coming from the gateway. Open your project on your phone or another devicce, and your gateway machine will emit the sound when you click it.
I try to play alert sound the calling iframe sec link to a mp3 file and it works fine until I discover if I let broswer open for while each time iframe play sound it increase the RAM usage until the session crash in broswer.
Could you confirm this is a bug and will be fixed or this a iframe normal behavior.