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

      0  

    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
    Location
    San Diego, CA
    Posts
    174
    Answers
    6
    Vote Rating
    33
    nohuhu has a spectacular aura about nohuhu has a spectacular aura about

      1  

    Default


    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.

    Regards,
    Alex.

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