1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    387
    Vote Rating
    4
    gkatz is on a distinguished road

      0  

    Default sencha io messages

    sencha io messages


    Hi;
    I am playing around with the idea of adding an anonymous chat to my sencha touch app.
    my requirements are very simple:
    -single chat room for everyone
    -user publishes message to everyone (pub/sub only)
    -no need for user authentication - users are anonymous

    I just want to know if sencha io is a good place for such an implementation. as its an anonymous chat, I only need a single user that probably everyone will use, only one queue, etc...
    am I right here?
    also, I ado I even need a user/user group/app/app version etc? i only need a queue for my app that everyone can connect to. I definetly don't want users to log in with credentials to use this feature (cause they'll simply not use it)
    thanks in advance.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The issue I see with only having one user is how do you know what message belongs to what client user?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    387
    Vote Rating
    4
    gkatz is on a distinguished road

      0  

    Default


    valid point
    I am not sure cause i dont really now the api yet...
    Assuming i dont care where the message came from i guess it can work?
    Also, assuming i already manage users in a db for my non sencha desktop website, what is the best practice here? Can i map user auth to my db? Or do i need to port all my users to sencha login?

  4. #4
    Sencha User
    Join Date
    Apr 2010
    Posts
    107
    Vote Rating
    -1
    merrells is an unknown quantity at this point

      0  

    Default


    Hello,

    Yes, SIO does support anonymous messaging.

    You can create a named queue and pass all your messages through that.

    No need for any user authentication.

    The message you send would be:

    {from:'john',message:'yes anon msg wks!'}

    Then you can use the from as the label in your chat widget.

    John: yes anon msg wks!

    You can send whatever you want through. It's a simple JS object that's turned into a JSON for transmission.

    John

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi