| Author |
Message |
|
| Guest |
Posted: Mon Dec 07, 2009 8:01 pm |
|
|
|
Guest
|
Hi,
I'm looking to adopt Strophe as client-side library, and following the reading
of http://metajack.im/2008/10/03/getting-attached-to-strophe/, I'm attempting
to discover how to obtain the Request ID from the session created with
exmpp_session:connect_BOSH/4.
There is strong comment that exmpp_bosh should not be called by client
developers (I had noticed exmpp_bosh:reset_parser/1 gave visibility of the rid).
So, for the moment I am struggling to discover the correct method for
obtaining the Request ID I can then use with Strophe.
Any help very welcome (and it may be I am betraying ignorance on XMPP
usage).
many thanks,
ian
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Dec 09, 2009 7:07 pm |
|
|
|
Guest
|
Hi Ian,
I'm not sure to understand what is your intended scenario. Why do you
need exmpp_bosh if your final
goal is to use strophe?.
Anyway, you are right, currently there is no way to obtain the
initial request ID after calling
exmpp_session:connect_BOSH/4.
Why do you need it?, it is only the initial request ID, or the last
request ID sent?. It could be added to the exmpp API if there is a
need for this.
2009/12/7 Ian Wilkinson <the.ian.wilkinson@googlemail.com>:
> Hi,
> I'm looking to adopt Strophe as client-side library, and following the
> reading
> of http://metajack.im/2008/10/03/getting-attached-to-strophe/, I'm
> attempting
> to discover how to obtain the Request ID from the session created with
> exmpp_session:connect_BOSH/4.
> There is strong comment that exmpp_bosh should not be called by client
> developers (I had noticed exmpp_bosh:reset_parser/1 gave visibility of the
> rid).
> So, for the moment I am struggling to discover the correct method for
> obtaining the Request ID I can then use with Strophe.
> Any help very welcome (and it may be I am betraying ignorance on XMPP
> usage).
> many thanks,
> ian
>
>
> _______________________________________________
> ejabberd mailing list
> ejabberd@jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>
--
Pablo Polvorin
ProcessOne
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Dec 09, 2009 8:17 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Thu Dec 10, 2009 1:22 pm |
|
|
|
Guest
|
Hello,
ok, I see your point .
> -spec(get_bosh_rid(Session::pid()) -> {ok, integer()}).
> get_bosh_rid(Session) ->
> gen_fsm:sync_send_all_state_event(Session, get_bosh_rid).
I'd rather prefer to not include this on exmpp_session, as it only has
a meaning if
the underling connection is BOSH.
I'd prefer a general way to get/set vars on the connection, something like
-spec(get_conn_var(Session::pid(), Var::atom()) -> {ok, Value::any()}).
get_conn_var(Session) -> [..]
-spec(set_conn_var(Session::pid(), Var::any(), Value::any()) -> ok).
get_conn_var(Session) -> [..]
I'd happily apply a patch like that, any volunteers?
Regarding session attachment, keep in mind that you should be sure
that no extra request is made
from the webapp after you have asked for the RID (in BOSH, request
aren't only triggered by data to send, a POST request could be
triggered by a timeout, or by having receiving data from the server).
2009/12/9 Ian Wilkinson <the.ian.wilkinson@googlemail.com>:
> Hi Pablo,
> This may be huge dumbness on my part...from my reading of
> http://metajack.im/2008/10/03/getting-attached-to-strophe/
> it suggests you can establish the |
|
|
| Back to top |
|
| Guest |
Posted: Thu Dec 10, 2009 1:44 pm |
|
|
|
Guest
|
Hi Pablo,
My change did tend towards the pragmatic
On the get_conn_var/2 and set_conn_var/3, I'm guessing we should also
have {error, Reason::term()} as possible reply.
I'm happy to volunteer on the patch implementation, unless there
is a rush of people ahead of me.
And big thanks on the additional comment.
ian
On Thu, Dec 10, 2009 at 1:22 PM, Pablo Polvorin <pablo.polvorin@process-one.net (pablo.polvorin@process-one.net)> wrote:
Quote: Hello,
ok, I see your point  .
> -spec(get_bosh_rid(Session::pid()) -> {ok, integer()}).
> get_bosh_rid(Session) ->
> |
|
|
| Back to top |
|
| palex |
Posted: Mon Jul 26, 2010 4:19 pm |
|
|
|
Joined: 26 Jul 2010
Posts: 2
Location: Russia
|
Hi !
We wish to begin XMPP over BOSH connection in EXMPP and continue same connection in JavaScript JWChat based client.
How to receive SID in EXMPP(exmpp_session:connect_BOSH) for transfer to other client(JWChat)?
Thanks for all! |
|
|
| Back to top |
|
| palex |
Posted: Mon Jul 26, 2010 4:23 pm |
|
|
|
Joined: 26 Jul 2010
Posts: 2
Location: Russia
|
Hi !
We wish to begin XMPP over BOSH connection in EXMPP and continue same connection in JavaScript JWChat based client.
How to receive SID from EXMPP(exmpp_session:connect_BOSH) for transfer to other client(JWChat)?
Thanks for all! |
|
|
| Back to top |
|
| wuji |
Posted: Sat Aug 18, 2012 7:27 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
For the next 11 years, doctors treated him with with replica designer *beep* with anti-retroviral therapy, to which he responded positively.In 2006, however,
health deteriorated. He was diagnosed with acute myeloid leukemia -- -- [h3]cheap Christian Louboutin[/h3] -- and underwent chemotherapy. While the first round of treatment
to work, it also made him more susceptible to infections. infections. cheap polo shirts infections. Brown developed pneumonia early on in his treatment, and
battled sepsis halfway through his third round of chemo. His His [h3]replica designer bags for sale[/h3] His doctors realized they would have to try a different
oncologist, Dr. Gero Hutter of the Charite Hospital in Berlin, Berlin, cheap replica *beep* Berlin, opted to give Brown a stem cell transplant to
his leukemia. But rather than choosing a matched donor, he he cheap louboutins he used the stem cells of a donor he found
had what is known as a CCR5 mutation -- a a discount designer *beep* a mutation that makes cells immune to the HIV.In
later published in the New England Journal of Medicine, Hutter Hutter [h1]cheap Ralph Lauren Polo[/h1] Hutter and his colleagues reported that the transplant not only |
|
|
| Back to top |
|
| mbtshoes88 |
Posted: Tue Sep 18, 2012 8:40 am |
|
|
|
User
Joined: 18 Sep 2012
Posts: 30
|
| Combine it with black or brown Cheap Armani Watches shoes, even white if you want to look different. Replica Armani Watches Standard blue generally means navy blue and Emporio Armani not any other paler shades of blue that will look odd. Classic Gray: Can be worn for different occasions and this will make even ladies turn their heads to notice you. Grays also look imposing Cheap Armani Shoes with different stripes and patterns classic gray suits are the hallmark of a gentleman. Cheap Georgio Armani Basic Black: The favorite suit of many well-dressed men and goes well Armani Online with a good white shirt. If you Armani Outlet can afford only one suit, Armani Suits then prefer this versatile Basis Black. As a fourth choice, you can select any of the above three with pinstripes. Cheap Armani Online Men Cheap Armani of average physical build Cheap Emporio Armani can choose either single-breasted or double-breasted Georgio Armani jackets. Double-breasted jackets are intended for slim men so that their leanness is not too visible and single-breasted jackets are meant for the stout to somewhat hide their obesity. Choose the jacket style Armani Sale that best suits your build. fmzds120823 The jackets must be of perfect fit and cause no wrinkles when you button them up. As far as possible, shoulder pads should be avoided and your tailor should guide you in Cheap Armani Suits this regard. You must now choose a trouser style although most men do not attach much Cheap Amarni EA7 importance to trousers and accept any pants that come with a jacket. When you discuss trousers, you need to worry about waist, drape, belt-loops, posterior-hugging, crotch-dangling, and whether or not you need a watch pocket. The best way to judge a pair of pants is to ask “Will I be able to wear these pants without the jacket and still look fine?” If the answer is Cheap Armani Outlet yes, then the pant is of perfect style and fit. Sometimes it is good to heed to the advice of a salesman and buy two pants for the same jacket. The idea is you can alternate pants with the jacket so they wear evenly over time. There may be occasions you may wear the pants minus Armani Shirts the jacket, it Cheap Armani Sale is always prudent to have a back-up pair. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|