Call Javascript function from Plugin

I am trying to call my plugins Javascript function from events happening in the Python side, can anyone tell me how to do this? After searching I only see the reverse.

You need to implement an API - look for the SimpleAPI plugin mixin.

self._plugin_manager.send_plugin_message and self.onDataUpdaterPluginMessage viewmodel callback on the js side.

Oops, I completely missed that one, got it backwards