php - Electron - Get website to send data to Electron App -


the goal have live website simple textbox. when visitor fills out textbox , submits form, want site send submitted data electron app.

i use advice on best way accomplish 2 things.

  1. how connect site , electron site can send data electron.
  2. once connected, how app 'listing' state stays idle , recognizes when site has sent data (as opposed sending request on sort of timer checking new data)?

if reversed , needed app send data site, easy, reverse i've never done before , don't know begin.

thanks in advance helps steer me in correct direction.

i've searched bit pushing data web server clients , found websocket way go. if want read more before websocket can read here

in case use long polling because implementing websockets in php needs little more effort working .


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -