Dinesh
2012-01-14 07:43:13 UTC
Hello,
I am planning to use xmpp4r gem in my Rail application to implement
reverse Ajax functionality.
Here is my current scenario in my application:
1 - I have one important page in my app which keeps on updating by many
users, so to track the changes done on that page I am continuously
sending the Ajax request to the server in the interval of 20 sec, this
is really hampering my application performance as there is unnecessary
ajax request are going after every 20 secs even if there is not update
on that page.
To overcome above problem I am planning to use xmpp4r based gem and in a
way I found your plugin/gem on github, so I have following questions
regarding this gem, it would be helpful for me if you can clear my
doubts/ questions regarding this gem:
1 - As I read the documentation provided with this gem and found out
that for this gem some jabbar server is used where users of the
application needs to be registered, and using the application logic
written in gem request is send to jabbar server and from jabbar server
that changes/message is broad-casted to all registered users.
So I was wondering if I can use this gem without using the external
server(in this case jabber) and can directly setup the server locally
and send the updates to the users and somehow I can take those
changes/updates and I can show those updates on the page to other users.
Let me know if you have any suggestion for me to use this gem by
considering my scenario.
Thanks,
Dinesh
I am planning to use xmpp4r gem in my Rail application to implement
reverse Ajax functionality.
Here is my current scenario in my application:
1 - I have one important page in my app which keeps on updating by many
users, so to track the changes done on that page I am continuously
sending the Ajax request to the server in the interval of 20 sec, this
is really hampering my application performance as there is unnecessary
ajax request are going after every 20 secs even if there is not update
on that page.
To overcome above problem I am planning to use xmpp4r based gem and in a
way I found your plugin/gem on github, so I have following questions
regarding this gem, it would be helpful for me if you can clear my
doubts/ questions regarding this gem:
1 - As I read the documentation provided with this gem and found out
that for this gem some jabbar server is used where users of the
application needs to be registered, and using the application logic
written in gem request is send to jabbar server and from jabbar server
that changes/message is broad-casted to all registered users.
So I was wondering if I can use this gem without using the external
server(in this case jabber) and can directly setup the server locally
and send the updates to the users and somehow I can take those
changes/updates and I can show those updates on the page to other users.
Let me know if you have any suggestion for me to use this gem by
considering my scenario.
Thanks,
Dinesh