librelist archives

« back to archive

Regarding Chatrooms Join / Exit

Regarding Chatrooms Join / Exit

From:
Gauri Padbidri
Date:
2015-06-12 @ 14:01
Hi JC,

 

I have modified my code to display Chatrooms on the Contacts Panel Sidebar.
I am displaying the number of participants besides the Chatroom Name like
follows : 

Public Lobbies : 

Chatroom_Test (3)

Chatroom_Demo (17)

 

I want to be able to update the number of participants every time a user is
ADDED / EXIT the Chatroom. Which is the best API /Event to do so ?
Currently, I am using the "updateOccupantsOnPresence"  API to modify the
count via jQuery. Can you suggest me a better way to capture the Join / Exit
of the chatroom.

 

 

Best Regards,

Gauri Padbidri

cross origin support?

From:
Yang, Debbie
Date:
2015-06-19 @ 21:52
Is there a way to allow for cross origin support?

My application is using SSL but the bosh_server_url is using an http call 
and I know in other apps I've seen there is a flag or configuration 
setting that can be used to allow for cross origin (CORS) so that the 
https and http can mix.  Does conversejs have such an override?

Thanks,
     Debbie

Re: [conversejs] cross origin support?

From:
Mohit Jain
Date:
2015-06-21 @ 21:25
Hi Debbie,
I have faced same issue.
My application running on https and openfire is on http.
So we have create apache rule for resolving this issue.
for an example my application is running 
https://servername/application
and openfire is on
http://serverName:9090/
Try to add below entries in your apache server.
ProxyPass /application http://serverName:7070/http-bind/
Try this 
Thanks,Mohit 


     On Friday, 19 June 2015 10:53 PM, "Yang, Debbie" 
<dyang@textronsystems.com> wrote:
   

  <!--#yiv2058362836 _filtered #yiv2058362836 {font-family:"Cambria 
Math";panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv2058362836 
{font-family:Cambria;panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered 
#yiv2058362836 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 
4;}#yiv2058362836 #yiv2058362836 p.yiv2058362836MsoNormal, #yiv2058362836 
li.yiv2058362836MsoNormal, #yiv2058362836 div.yiv2058362836MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", 
"sans-serif";}#yiv2058362836 a:link, #yiv2058362836 
span.yiv2058362836MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv2058362836 a:visited, 
#yiv2058362836 span.yiv2058362836MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv2058362836 
span.yiv2058362836EmailStyle17 {font-family:"Calibri", 
"sans-serif";color:windowtext;}#yiv2058362836 
span.yiv2058362836EmailStyle18 {font-family:"Calibri", 
"sans-serif";color:#1F497D;}#yiv2058362836 .yiv2058362836MsoChpDefault 
{font-size:10.0pt;} _filtered #yiv2058362836 {margin:1.0in 1.0in 1.0in 
1.0in;}#yiv2058362836 div.yiv2058362836WordSection1 {}-->Is there a way to
allow for cross origin support?    My application is using SSL but the 
bosh_server_url is using an http call and I know in other apps I’ve seen 
there is a flag or configuration setting that can be used to allow for 
cross origin (CORS) so that the https and http can mix.  Does conversejs 
have such an override?    Thanks,      Debbie       

  

converse and openfire SSL issue

From:
Yang, Debbie
Date:
2015-06-19 @ 20:51
Not sure if this is converse or openfire, but I am using the bosh server 
in openfire with converse chat.

In openfire in the HTTP Binding settings I've enabled it so clients can 
connect using http binding and using the default port of 7070, and 7443 
for SSL.

If I then go to:  http://1myOpenfireServer.com:7070  I get a webpage that 
says: OpenFire HTTP Binding Service as expected and I can login via 
conversejs.

If I go to: https://myOpenfireServer.com:7443  I get a connection refused 
error. Since I enabled HTTP Binding and specified 7443 for the SSL port I 
would've expected to get the same Openfire HTTP Binding service web page.

Do I need to do something to converse to get it to talk to openfire using https?

Or is this really an openfire issue?

Do you know why and what I need to do to be able to get converse chat to 
work using  https?


Thanks,
   Debbie

converse and openfire SSL issue

From:
Yang, Debbie
Date:
2015-06-19 @ 20:54
Oops, I had a typo. The URLS should be the same except for http/https and 
the port #.


Not sure if this is converse or openfire, but I am using the bosh server 
in openfire with converse chat.

In openfire in the HTTP Binding settings I've enabled it so clients can 
connect using http binding and using the default port of 7070, and 7443 
for SSL.

If I then go to:  
http://myOpenfireServer.com:7070<http://1myOpenfireServer.com:7070>  I get
a webpage that says: OpenFire HTTP Binding Service as expected and I can 
login via conversejs.

If I go to: https://myOpenfireServer.com:7443  I get a connection refused 
error. Since I enabled HTTP Binding and specified 7443 for the SSL port I 
would've expected to get the same Openfire HTTP Binding service web page.

Do I need to do something to converse to get it to talk to openfire using https?

Or is this really an openfire issue?

Do you know why and what I need to do to be able to get converse chat to 
work using  https?


Thanks,
   Debbie