Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2008
    Ostrava, Czech Republic

    Question Channel API: private channel ID


    While am I still in whine mode I'd like to repost my question originally posted here:

    In client 2.0 it was not possible to use private channel's name as an ID for openChannel(Id,callback) and there was nothing else as a replacement. May I ask for some explanation on how to use private channels properly?
    (After they are working again, that is.)



  2. #2
    Regular Contributor
    Join Date
    Jul 2004

    Re: Channel API: private channel ID

    Channel id (for public channel) can be what ever, but it should have something to do with the name of the widget so that public channel names would not collide (so don't use "default", "channel", "public" etc

    To use private channels:
    1) User A creates private channel:
    openPrivateChannel("foo", [], 10*1000, onPrivateChannelCreated);
    2) When onPrivateChannelCreated() is called by platform, User A knows the name of the private channel.getName()
    3) User A sends the name to user B via public channel that they are both joined on: Member.send("challenge", ["name" => channel.getName()], onChallengeAgreed);
    4) User B gets previous message to his MessageCallback (given when joined to public channel): if (command.equals("challenge")) { openChannel(argument.name, "foo", [], 10*1000, onPrivateChannel); }

    Channels should start to work after next release in the beginning of next month =)


  3. #3
    Registered User
    Join Date
    Jun 2008
    Ostrava, Czech Republic

    Re: Channel API: private channel ID

    Hi render,

    thanks for thorough explanation, I will test it with the new release for sure

    Is there a scenario where it would be possible to use shortened version of openChannel function: openChannel(Id, callback)?

    Thanks again!


Similar Threads

  1. Opening secure channel from the applet doesnot work with Nokia 6131
    By sujithkjoseph in forum Near Field Communication
    Replies: 0
    Last Post: 2008-06-05, 13:51
  2. S60 3.2 SDK final version is released now!
    By green_lu in forum Symbian
    Replies: 5
    Last Post: 2008-03-19, 15:59
  3. User Comments and Examples into API Docs
    By jyrkiettila in forum Feedback - Developer Services & Infrastructure
    Replies: 4
    Last Post: 2006-04-21, 11:04
  4. SocketConnection Work on 6600&Emulators BUT NOT IN 6680
    By eerant in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2006-03-11, 01:35
  5. another Null pointer exception
    By kvchen1985 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-06-28, 15:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts