Here's what I have so far.
XMPP Server - Ejabberd or Vine
XMPP Library in Rails - Blather
XMPP Library on Client - Strophe.js
Is this what I need to integrate chat into my rails app?
EDIT: from the creator of Vine.
"It's probably safer to use ejabberd, since its a more full-featured server than vines."
I would have add a comment but unfortunately I don't have enough reputation yet.
If you want to do your chat client side, Strophe is recommended. If you want to store some conversations, you'll do it server-side, but not 'rails server'-side, you should do it 'xmpp server'-side : Ejabberd should store your old messages, romm topics or your contact list. It's his job.
Blather could be usefull to make rails communicate with your xmpp-server. Typical use cases could be making server to server communication, or creating an xmpp bot to interact in your chat : it could be asking questions for a game or managing the room to kick flooders.
You need only a server and a client library. So you go either with Blather or Strophe.
Strophe is a JavaScript library and runs on the web browser, while blather is a rails library and runs on your server.
When you want to create a web chat then I think you should go with Strophe.
Related
I'm building a chat application using QuickBlox, and I understand that it provides SDKs for Android/iOS/JS. As part of the implementation, I have to implement a server side bot that can chat with users. Is it possible to create a XMPP client on the web server that can maintain a stateful connection with QuickBlox's cloud and act as a client, and thus chat with users as a bot? I was planning on using Smack, but I'm totally unsure of how to integrate that with QuickBlox.
I've seen a python implementation of a possible server side bot, but I was looking for a Java based solution.
QuickBlox doesn't provide a Java SDK. Can anyone point me to a sample code that uses Smack and talks to QuickBlox?
Thanks!
There is another one Python bot implementation with some commands set
https://github.com/soulfly/MehDoh-q-municate-chat-xmpp-bot
it works with QuickBlox Q-municate http://qm.quickblox.com
and you can try to play with it - it's a user with name I am IgorK, just register and add him as a friend.
With Java and Smack it's also possible
How to start:
Use Smack guide to understand how it works https://www.igniterealtime.org/builds/smack/docs/latest/documentation/gettingstarted.html
Register an account in QuickBlox Admin panel and create an application there - use 5 mins guide http://quickblox.com/developers/5_Minute_Guide
Then go to Users module in admin panel and create a couple of users
Here is how to connect to QuickBlox Chat http://quickblox.com/developers/Chat#Connecting_to_server . Just build user's jid and password using users you created in admin panel and then use these credentials for Smack
that's all, should be quite simple
I want to develop an ios app on xcode which provide an web crawler service to the user. So I want to implement a server and implement a php web crawler in it which will server as a backend of my app. I had installed ubuntu server on my pc, is it possible to implement web crawler service on that. If not then which server can I use and how can I connect it with my ios app.
You are missing a question mark AND the only sentence i can figure out to be a question is wether or not it is possible, therefore:
YES
i am developing a ios app in which i need to create instant text chat with a back end .net server.
And in future also use this server through my andropid app.
how can i achieve this goal ?
You can use signalR with your .net backend. SignalR is a library that handles persistent socket connects via websocket, serversent, long polling etc. Research SignalR and you will find plenty of examples and implementations. Your IOS application can import the Obj-c SignalR client. The client understands the protocol used to communicate with the server.
It's pretty basic and easy stuff to implement.
SignalR .Net
http://www.asp.net/signalr
Objective-c Client
https://github.com/DyKnow/SignalR-ObjC
I have completed the tutorial in
http://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-ios-get-started-push/
and able to receive push notification on my iPhone. The question is, if my website is ASP.NET, how can I get my website to talk to mobile services? Or it is not possible at all ?
Yes, you can definitely communicate ASP.Net website with mobile service. Download Nuget Package for Microsoft.WindowsAzure.Mobile.Service and add reference - http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.mobile.service.aspx.
Instantiate MobileService instance using App Key and secret. And start consuming the DBs as service. There are lot of tutorials for this - http://blogs.msdn.com/b/mim/archive/2014/02/28/windows-azure-mobiles-services-c-backend-en-version.aspx.
Best way to get used to , is download simple TODO app for .net Backed Mobile service and see how that works.
last year I made really simple blog system. it allows user to authorize, posting, commenting. Now I want to create windows mobile/wp7 application that can adding new posts to my blog. But I have no idea how should it work. Should my web app share some api for this or my phone app should just sending specified request to server? I'm interessting how do facebook phone apps work? How they pass data to fb etc.
It would be great if anyone knows book, tutorial or something about connecting web app and phone app. I rather need app architecture tutorials than codes.
PS I know I can just open phone browser and login on website but I want to do it for fun :)
One way of approaching this is create a few actions in your controllers to return data in a format that is friendly to a WP7 app, for example, return JSON rather than HTML.
In your WP7 app you will make HTTP requests to these actions and receive the data in JSON format. From there it's up to you to handle that information on the phone.
What is the back-end of the blog system? Almost any DB data can now be exposed out as an OData Service that can be consumed on a Windows Phone app & also provide CRUD operations. Is OData a possibility?
Check out these two posts for details:
http://www.silverlightshow.net/items/Producing-and-Consuming-OData-in-a-Silverlight-and-Windows-Phone-7-application.aspx
http://www.silverlightshow.net/items/Connecting-Azure-Windows-Phone-through-OData.aspx
The second one does talk about how a central data store can be shared between web & mobile apps.
Hope this helps!