Deep Dive - IPC w/ Electron & Context Bridge - Which IPC method is correct for you?

  Рет қаралды 18,052

tylerlaceby

tylerlaceby

Күн бұрын

Пікірлер: 42
@johnvargo8050
@johnvargo8050 Жыл бұрын
Struggled getting my invoke/handle block working for HOURS until I found this video. Thank you!
@DamonMedekMusic
@DamonMedekMusic 2 жыл бұрын
I'm using Electron and I've basically sectioned by preload script into 4 pieces. Renderer to Main, Renderer to Main to Renderer, Main to Renderer, and Main to Renderer to Main. This video did a great job explaining the first two sections. It took my awhile to digest all of this but it made a lot of sense eventually, thank you so much.
@tylerlaceby
@tylerlaceby 2 жыл бұрын
Of course. Glad you liked it.
@RadTwin
@RadTwin Жыл бұрын
Best explanation on KZbin right here
@Einfach_Ben
@Einfach_Ben 2 жыл бұрын
Thank you so much, I ran through so many slightly older videos/docs and comments which used electron remote all through render process which apparently doesn't work anymore, but I did not realize that this was the solution I needed. The pain is over...
@datasagedev
@datasagedev 2 жыл бұрын
I second everything you just said Ben, its crazy how little content and support there is for Electron with both Docs and other sources.
@wolf7115
@wolf7115 6 ай бұрын
Thank you so much! I was having a ton of issues getting electron to work the way I wanted, and your explanation of invoke/handle solved everything for me.
@RockieYang
@RockieYang Жыл бұрын
Thanks for great explanation.
@Barrosy
@Barrosy Жыл бұрын
This is such an explanatory video. Thank you so much!
@gbingol
@gbingol Жыл бұрын
To the point and very nice tutorial! Thanks.
@arsen3223
@arsen3223 2 жыл бұрын
this is really helpful thank you
@mohammadagha8857
@mohammadagha8857 2 жыл бұрын
Thanks a lot for this great video.
@vamparicW
@vamparicW 3 жыл бұрын
great video, thank you!
@tylerlaceby
@tylerlaceby 3 жыл бұрын
Glad you enjoyed xD
@ubidefeo
@ubidefeo 2 жыл бұрын
This was sooooo helpful! Thanks, Tyler. By the way, the GH link in the description points to a wrong url :)
@tylerlaceby
@tylerlaceby 2 жыл бұрын
Glad you found it useful. Also thanks I’ll get that fixed asap
@fantom_0560
@fantom_0560 Ай бұрын
think I might have just found an electron goldmine
@Graducation
@Graducation Жыл бұрын
hey man everything is good buti am not able to set my app icon(it shows default electron) after running make command
@tylerlaceby
@tylerlaceby Жыл бұрын
Sorry to hear that man. I sadly don’t know for sure but feel free to reach out on discord
@ukaszX-qt8eu
@ukaszX-qt8eu 2 жыл бұрын
Thanks. I have a propably simple problem to solve. I need IPC to connect python/electron. I have a python script that requires first no1 parametr, and secondly no2 parametr from user to start working. How to do it, can you give some examples, that we have simple python script which require some 2 variables from user to start, and it will be all activated from UI.
@tylerlaceby
@tylerlaceby 2 жыл бұрын
What you want to do is communicate via child processes to python. You can send and receive messages using child processes and pipes.
@Verzach3
@Verzach3 2 жыл бұрын
Hey bro, nice video, can you share the source to use it as an example?.
@tylerlaceby
@tylerlaceby 2 жыл бұрын
Sadly I didn’t keep any of the source files. But if you need any help or need please feel Fred to ask here or in my discord server. Cheers
@p.p526
@p.p526 Жыл бұрын
Bro, Is it possible to receive data inside main process ipcMain.handle function? I'm seding the userId from renderer and tying to use on inside the handler function but it's not working, any other alternative for this?
@tylerlaceby
@tylerlaceby Жыл бұрын
You should be able to use handle and invoke events or the on and send events.
@tylerlaceby
@tylerlaceby Жыл бұрын
If you are still having issues feel free to reach out on my discord or watch this video to see the differences. Best of luck. kzbin.info/www/bejne/ipbanWWPmaeXbNksi=j_Ms5IixZ22J9Yp0
@p.p526
@p.p526 Жыл бұрын
@@tylerlaceby Thanks bro for the support. Really appreciated.
@kristianpurgar5068
@kristianpurgar5068 2 жыл бұрын
The repository is not active anymore, I get 404?
@tylerlaceby
@tylerlaceby 2 жыл бұрын
Yea I changed my username on GitHub from tylerbadger23 to tylerlaceby I have not updated the descriptions on older videos. Sorry 😁
@unloyal6396
@unloyal6396 2 жыл бұрын
Hi, thanks for the video! I am using vue.js and every time i try to run the window.api.greet function from my vue class in the script i get the error: TypeError: Cannot read property 'greet' of undefined Any idea how i can fix this? Thanks in advance.
@tylerlaceby
@tylerlaceby 2 жыл бұрын
I would first make sure the exportInMainWorld(“api”, {}); function is being called in your preload script. Then console log the window object. If that’s not working then feel feee to message me in the discord server and make sure that you are loading the preload script inside the browser window declaration
@unloyal6396
@unloyal6396 2 жыл бұрын
@@tylerlaceby Thanks! I forgot to actually call the function in the browser window, also i had to add : module.exports = { configureWebpack: { target: 'web' } } to the vue.config.js file
@jasminescorp
@jasminescorp Жыл бұрын
This is so good, but unfortunately the github repo does not work
@tylerlaceby
@tylerlaceby Жыл бұрын
Oh no. I still need to fix the repo link with my older videos. Sorry about that. The username is tlaveby for my GitHub xD
@jasminescorp
@jasminescorp Жыл бұрын
@@tylerlaceby thanks I tried both. Tylerlabeby and 23. You have so many good examples, would be awesome to take at the code.
@daviclor6670
@daviclor6670 2 жыл бұрын
This is a good tutorial, but it would be much more helpful if there were a working link to the source code.
@tylerlaceby
@tylerlaceby 2 жыл бұрын
Yea sorry I have not started posting direct source code yet. I should probably do that.
@narottambasnet1565
@narottambasnet1565 3 жыл бұрын
I have a child and a parent electron but somehow I am not able to communicate with the child from main process
@tylerlaceby
@tylerlaceby 3 жыл бұрын
When you say child electron do you mean a child process ? If so then I would be happy to help if you go in discord. But I would first suggest checking to make sure the communication is setup. Lastly remember that the main and child processes communicate over the electron iPad events.
@coryulrich6489
@coryulrich6489 Жыл бұрын
I'm trying to learn how to use node modules in electron because that was what made it sound so awesome for desktop applications, and I almost can't believe people thing doing this is not only good, but the best option in the industry at the moment. It's honestly so complicated I think I'd rather just start learning rust. Learning the intricacies of electron may as well be another language in and of itself.
@tylerlaceby
@tylerlaceby Жыл бұрын
I mean if you want that’s fine but then you have to learn Rust and a while library. You do you man 👨
@coryulrich6489
@coryulrich6489 Жыл бұрын
@@tylerlaceby it's just a lot more difficult than anyone who talks about electron lets on. I finally gave up using a node module because the documentation and forum posts for doing so safely is a tangled nightmare. I was planning to play in rust anyways, and if the rest of the electron experience is like this I'll see if flutter is a better option for me.
Easy Persistent Storage w/ Electron - Storing User Preferences.
9:03
路飞做的坏事被拆穿了 #路飞#海贼王
00:41
路飞与唐舞桐
Рет қаралды 16 МЛН
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
How to Set-Up IPC Handlers with Electron
21:25
Ehren Grenlund
Рет қаралды 2,8 М.
Getting Started w/ Electron #4 - Inter Process Communication
15:00
Learn Electron js by creating an Always On Top Browser
43:40
Piko Can Fly
Рет қаралды 7 М.
Electron js Tutorial - 6 - IPC
17:46
Codevolution
Рет қаралды 62 М.
路飞做的坏事被拆穿了 #路飞#海贼王
00:41
路飞与唐舞桐
Рет қаралды 16 МЛН