×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Jun 2008
    Location
    Ostrava, Czech Republic
    Posts
    7

    Question Channel API: private channel ID

    Hi!

    While am I still in whine mode I'd like to repost my question originally posted here:
    http://dev.widsets.com/forum/topic/7/2082763/1/

    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.)

    Thanks!

    Jerry

  2. #2
    Regular Contributor
    Join Date
    Jul 2004
    Posts
    52

    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 =)

    /render

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

    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!

    Jerry

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. User Comments and Examples into API Docs
    By jyrkiettila in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 4
    Last Post: 2006-04-21, 11:04
  3. 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, 00:35
  4. 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
  •  
×