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.
- how connect site , electron site can send data electron.
- 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
Post a Comment