- Messages
- 1,041
- Country

From the Coherent.js link I provided, which is in the MSFS2020 SDK Documentation, a direct quote, literally the first paragraph:Well there may in fact be Coherent hooks or whatever they call them to achieve the aircraft and giraffe (dunno about the truck. I'm really not that familiar with the JS side, partly due to the wonderful docs. I tried to make a "persistent gauge" at one point which would somehow load with every aircraft (so I could get to their B vars via a WASM gauge) but I had a similar experience to yours.... "now what?"
But to achieve your heart's desire you could... (this may be a dumb idea mind you):
Create a WASM module which does your SimConnect work, which as you said would be pretty much the same as what any other SimConnect client would look like.
Create an HTML/JS UI with the basic buttons or whatnot.
Use the Communication API to talk between the two. It's brand new... what could go wrong?
(Check the devs forums for bugs related to the Comm. API though... did I mention it's new?)
Again, maybe there's a way to hook directly into SimConnect from Coherent, but I've not come across any mention of that until yours. And seems like all the core Coherent stuff is in some DLLs, so no sources to look at...
-Max
"...designed to permit you to integrate C++ engine calls in your HTML/JS/CSS instruments within Microsoft Flight Simulator..."
The way I read this is, you can literally call functions in your C++ modules from HTML/JS/CSS instruments. And by "Instruments", I assume any in-game UI that can be displayed on the screen, including overlay gauges and interactive dialogs. After that paragraph, a table with Coherent.js functions:
| RegisterViewListener(name, callback, requiresSingleton) | |
| on(name, callback, context) | |
| off(name, callback, context) | |
| trigger(name) | |
| call(name) |
After that, no description or any explanation, just documentation stubs...
Last edited:


