how to create Vaadin handler for when the push has failed? - vaadin

I workink with Vaadin now. It is support push-server technology.
I need to create a handler when the push is not successful (connection to server lost). I found how do it for Ajax technology here, but for push I can't find anything.

This is the answer of one expert of Vaadin:
That is a relatively advanced matter.
Vaadin is a server-side framework, merely a big server-side extension
to client-side GWT framework. Therefore the following is not possible
to do in Vaadin, but only in GWT whose minimum knowledge is then
required.
The official Vaadin TouchKit addon (Vaadin GUI for mobile)
already includes such an offline functionality, though it does
not use cookies as storage (source code on GitHub).
Anton Nikonienkov

Related

push sql server table change notifications to iOS device

I would need your help in below assignment. I have done some initial research but the team lead is suggesting to look for alternative options as external libraries would not be good fit from security perspective.
Requirement is whenever there is change in sql server table (DML operations) notifications should be send out to an API or if directly to iOS app using Amazon Web Services(AWS).
I checked and found that this can be achieved using SignalR but as this is third party package we are little bit concerned. Could you please suggest other alternatives to achieve the same thing? Is it possible to push sql server notifications to iOS app directly using AWS, if yes how we can do it? I have not done this before, open for suggestions.
Regards,
lbad
The "third party" developing SignalR is primarily Microsoft and source code is open: https://github.com/signalr/signalr. You can audit the code if you want.
If you wish to avoid third party libraries, you can write a trigger in your database that will invoke .NET code on nay update and call external API. Here is an example:
https://msdn.microsoft.com/ru-ru/library/windows/desktop/938d9dz2(v=vs.80).aspx
Then again, .NET and SQL Server are developed by Microsoft, the very same company that created SignalR.

React vs SignalR

I build web apps using ASP MVC and I am looking at using ReactJS. I have seen a few examples of React integrated into an ASP.NET MVC project and I don't really see the value over SignalR, which is what I use now for all real-time updates and communications.
I am hoping someone can go over the benefits of using React vs SignalR or even why I should be using React. Its popularity makes me think there is more to it that I'm just not seeing and I would hate to fall behind if it is more powerful and can help me do more.
Thank you for your responses!
React is used to build a single page apps or SPA, this will give you a desktop like UI, if you want it to be more interactive, then you can use it with SignalR to receive real time updates from the back end.
Facebook site alone is the idea of React, ex: responsive, no page refresh.
Integrating it with something like SignalR, adds the real time notifications about comments and posts
You should'nt compare apples and oranges.
React is a JS Library for building User Interfaces and SignalR is an abstraction, which will help you to send messages from server to client (also the other side).

How does Vaadin work?

Can anybody explain to me how Vaadin's server side Java components work? They seem to do a sync between server-side state with a client-side javascript engine called a "widgetset".
Does anybody have a more detailed explanation of Vaadin's internals? I have been trying to explain it to my coworkers and am at a loss for words.
Basically Vaadin runs your UI code on the server and uses the browser as a "thin client" (the widgetset) to create and update the DOM. All server-client communication is automated and taken care of by Vaadin. The end result in the browser is just a plain HTML5 application as far as the browser is concerned, no plugins are needed and it will work across different devices.
Going a bit deeper, each component in the framework has both a server side and a browser implementation. Both share a state that is maintained and communicated by the framework. As all communication is taken care of by the framework, it is able to optimize the transport quite a bit by only sending diffs and skip sending defaults etc. Also, since the widgetset contains the JS implementation of the browser component, no HTML templates are generated on the server and sent over, only the actual component state which is much more light weight.
Here is a more in-depth explanation from the docs: https://vaadin.com/docs/-/part/framework/introduction/intro-overview.html

Launch lync chat from another mobile application

To resume, I am developing a web application with Jquery mobile and I have a list of people from the same enterprise. I was asked if by one click on a person, the application could launch a chat via lync.
I did some research and I found that : https://ucwa.lync.com/documentation/what-is-lync-ucwa-api.
That API allow use to use Lync by adding C# code into the application, but my problem is that I have only HTML / CSS / JS for this project.
I think the only way for me would be to launch chat on the mobile or webversion of Lync from my application, do you know if it possible ? I can find an answer.
Thanks for your futur advice !
if you only need IM and presence (i.e. no audio/video) then UCWA is ideal. It's a rest-based API, so there's no dependency on clients using C# to call it. As I remember, the documentation on the UCWA site is pretty good
I know it's late but, i've an experimental java api which can communicate with Lync 2013 UCWA. Here is the github page
You are welcome to fork it.

Node.js service poller

I have an MVC web app that uses a jquery web request to generate the users notifications in a perceived async way. The notifications are built on request by each user on the site.
However I have been asked to make the notifications readily available as the happen.
This I would traditionally do using a windows service that called the same web method over http. I was thinking that this might be a good candidate functionality for using node.js
Is the any example code to call a http method in a loop and would that scale well ?
found this package and seems to do what i needed
https://npmjs.org/package/node-cron-jobs
I also came across "forever" to run node as a child process that can be re-spawned if there are errors
If you're already running on ASP.NET MVC take a look at SignalR. This was written by Microsoft, is supported by them and provides functionality similar to the Socket.IO, node.js stack.

Resources