# How to get stream ID

**URL:** <https://www.ruby-forum.com/t/how-to-get-stream-id/115072>\
**Category:** Rails\
**Created:** [September 20, 2007, 11:25am UTC](https://www.ruby-forum.com/t/how-to-get-stream-id/115072 "2007-09-20T11:25:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shishir\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Post date:** [September 20, 2007, 11:25am UTC](https://www.ruby-forum.com/t/how-to-get-stream-id/115072/1 "2007-09-20T11:25:38Z")

</div>

Hi,

I am trying to get the stream ID of the jabber stream initiated when I  
create a new connection like this :

@cl = Jabber::Client::new(@jid)  
@cl.connect(host=‘host’, port=5223)  
@cl.auth\_nonsasl(@password, false)

I don’t see any method defined for the client object @cl which can  
give me the id for underlying stream.

Any help would be appreciated.

Thanks,  
Shishir
