1. #1
    Sencha User vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    520
    Vote Rating
    9
    vadimv will become famous soon enough

      0  

    Default ExtJS with server-push mechanism or long polling

    ExtJS with server-push mechanism or long polling


    Hi all,
    just started an investigation on this one: server-push technology(one of them "comet"), sth like websockets, or sort of long polling - an alternative to the periodic polling of the Ext.Direct which will be the last solution. So wondering if Extjs has sth built into which I can use for my sort of "real time" cross-browser application.

    Thx for any replies and suggestions.
    Vadim

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    436
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    There isn't anything built-in to handle comet.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Posts
    5
    Vote Rating
    1
    preeti_gupta is on a distinguished road

      0  

    Default Push with JQuery

    Push with JQuery


    Hi, we are also working on the issue. We have to show push data in a grid. Is there still nothing available to implment server push mechanism in Sencha? If not, then is it possible to it through JQuery in Sencha Grid?
    Thanks in advance.

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    16
    Vote Rating
    0
    eric.cook is on a distinguished road

      0  

    Default


    All you need on the Ext JS side is to get your data as JSON. Set up Comet, return some JSON data, use it to load your grid manually. If you need to, write a custom reader that consumes a specific JSON response.

  5. #5
    Sencha User vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    520
    Vote Rating
    9
    vadimv will become famous soon enough

      0  

    Default


    just some hints:
    - if you have node.js in your backend then you can use socket.io
    - if apps requirements are ok with having websockets, then you can use them.
    - depending on your backend you might find already sth implemented, else how eric.cook said setup it yourself.

  6. #6
    Sencha User
    Join Date
    Mar 2013
    Posts
    5
    Vote Rating
    1
    preeti_gupta is on a distinguished road

      0  

    Default Streaming done

    Streaming done


    Thanks for hints everyone. It is working for us now. Pushed data using a vertex server and just refreshed the store of grid at runtime to see realtime updates.

  7. #7
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
    dhruvchauhan is on a distinguished road

      0  

    Default Real time data push in sencha touch for mobile devices

    Real time data push in sencha touch for mobile devices


    Hi

    Is there anything available for sencha touch 2 to show real time updates on mobile devices. We are trying to use vertex server but not able to get the desired output. Server disconnected every time.
    If there is any workaround, please share with us. If any other server push technique available then please share.

    Thanks
    Dhruv