Websocket debugging

6 posts, 0 answers
  1. Mark
    Mark avatar
    6 posts
    Member since:
    Mar 2013

    Posted 11 Mar 2013 Link to this post

    Hi,

    I am evaluating Icenium with a simple app using WebSockets and attempting to deploy to Android*.

    The Mist interface is a joy to use to build/demo the app and build a deployable apk. While the app behaves perfectly in the demo screens when deployed to Android the WebSocket functionality is not available.

    While I can see that the WebSocket object is created/initialised and the functions assigned the functions themselves (e.g. onopen) are never called . 

    Can you kindly let me know if WebSockets are supported and what debug options are available (apart from numerous alert(...) statements)?

    Regards,
    Mark

    ps) Unfortunately I am unable to debug using Graphite (no Windows). 

    * Galaxy S2 (4.0.4)

  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 11 Mar 2013 Link to this post

    Hello Mark,

    As per this matrix WebSockets are not supported in the default Android browser, thus in Cordova hybrid applications. There are some old shims that have added partial support, but none of them is integrated into Cordova's code base. You can still using long-polling though.

    As a note WebSockets are supported on iOS.


    Regards,
    Stefan Dobrev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. Mark
    Mark avatar
    6 posts
    Member since:
    Mar 2013

    Posted 11 Mar 2013 Link to this post

    Hi Stefan,

    Thanks for the prompt response.

    To meet latency requirements, the app heavily relies on event-driven messages from the server which makes long-polling a very unappealing option (i.e. building a native 'droid app would make more sense).

    Do you know of anything (shims or otherwise) supported by Icenium to enable this functionality?

    Regards,
    Mark
  4. Mark
    Mark avatar
    6 posts
    Member since:
    Mar 2013

    Posted 11 Mar 2013 Link to this post

    Ok, so you can enable this functionality by hacking a WebSockets plugin for android and building cordova manually. This is great as at least the application code is consistent, if not the build process.

    Do you guys have anything on the roadmap for adding such a plugin to Icenium? There appears to be something in the cordova incubator however, there doesn't appear to be any active development on it.

    Regards,
    Mark
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Mar 2013 Link to this post

    Hi Mark,

    We have not had a request for WebSockets plug-in so far, but our planning is driven by customer demand, so if you suggest this functionality on our Feedback Portal and it gathers enough votes, we'll have it in mind.

    In general you can read more about our plans for generic plug-ins support in the following forum thread.

    Kind regards,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  6. Mark
    Mark avatar
    1 posts
    Member since:
    Dec 2011

    Posted 13 Mar 2013 Link to this post

    Thanks Steve,

    I've added a request in the feedback portal. 

    Incidentally - as the version control integration in the Mist browser is so seamless I can still use it as an IDE for both iOS and Android even if the latter is a manual build - great feature!

    Regards,
    Mark
Back to Top