AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Is There a Way to Communicate With JavaScript?
The IPC mechanism, the way that it works is that you essentially bind go functions or struct methods to your application. And they get presented at the front end through a JavaScript endpoint. So instead of having to worry about messages, requests, parameters, all that sort of stuff, you actually just call functions. It's interesting because we do think of go as a server with eight HTTP interfaces and things. But it doesn't end up being quite similar because you have this front end that's communicating somehow with the back end through some kind of procedure calls. The difference is that that mechanism for communication is completely hidden for me.