1. #1
    Sencha User
    Join Date
    Nov 2013
    Vote Rating
    xjscrafter has a little shameless behaviour in the past


    Default Unanswered: How do I handle server push within ExtJS 4.2.2 app?

    Unanswered: How do I handle server push within ExtJS 4.2.2 app?

    Getting started investigating server push to ExtJS apps, but I have a question about how to handle it on the ExtJS side.

    My understanding is that with server push, ExtJS app might have no idea the server might push to it.

    Is this the case, or do I need to do something to make my ExtJS app "server push aware", like making it listen or ready to get the pushed data?

    I imagine server pushing some data, and ExtJS just gets it and handles the data.

    But how does the server know where to push the data to? If there are 5 types of server push that at any time might go to an ExtJS app, how does the server know where each of those 5 pushes go to?

    Sorry if I seem ignorant of how all this works, but I'm just getting started in this and am wondering how this stuff works with ExtJS.

  2. #2
    Sencha - Ext JS Dev Team
    Join Date
    Jun 2011
    San Diego, CA
    Vote Rating
    nohuhu has a spectacular aura about nohuhu has a spectacular aura about



    One approach is to use events for the server push. In one of my projects, I leveraged the Ext.direct.PollingProvider and built a server side framework that allowed to post either unicast or broadcast events. The client side part consisted of a singleton that registered on the PollingProvider, kept track of the subscription requests, etc., and posted incoming events on a custom event domain. The actual consumers of the event were Controllers listening on that domain and taking appropriate action upon firing an event.

    The upside is that once the low level parts are in place, it's quite easy to work with the stuff. The downside is that it required considerate amount of work to be done on the server side as well, which probably is always going to be the case.


Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar