NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: markster on December 03, 2014, 08:28:52 AM
-
Is there any relatively simple way to push a notification from the server to a browser? In my app, a user can post an invoice to recipient via WebServer processing. I need to figure out a way to notify the receipient that a new invoice has been created and payment is due (ie. a POS situation) so that they can make the payment then and there.
Regards,
Mark
-
Hi Mark,
The short answer is no - there is no open connection between the server and the browser, so there's no way to push from the server to the browser.
However, Dries is doing a session next week Friday (12th dec 2014) on ClarionLive on using WebSockets - and that does open a connection, so using that approach is probably is possible. So make sure you catch that.
Cheers
Bruce
-
Something else that will do this and is "more modern" than websockets is Server Sent Events. See http://html5rocks.com/en/tutorials/eventsource/basics/
-
Hi Mark,
Very interesting reading, thanks for the link.
Peter
-
>> Something else that will do this and is "more modern" than websockets is Server Sent Events.
I investigated these some time ago, but unfortunately they're completely not supported on IE so they're not a generally useful solution. WebSockets are more generally supported, and you can implement the same functionality (and more) over WebSockets so I determined that WebSockets would be the better option in the longer term.
WebSocket support is currently on the Roadmap for NetTalk 9.
cheers
Bruce
-
Thats good news. Thanks:)