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
Related
I am new to WebSocket, choosing between https://github.com/daltoniam/Starscream and SwiftNIO,
With SwiftNIO couldn't find clear guidelines, can I Use just SwiftNIO client WebSocket in iOS. and the WebSocket server will be implemented using different web technology(Java or Spring websocket)? or if I develop client using SwiftNIO does server also has to be build using SwiftNIO?
My App is iOS 10 onwards, so I can't use apple WebSocket API(>ios13)
Thanks in advance.
This package is built on SwiftNIO's WebSocket module, but gives a higher level API similar to Starscream: https://github.com/vapor/websocket-kit/
You can see example usage here: https://github.com/vapor/websocket-kit/blob/master/Tests/WebSocketKitTests/WebSocketKitTests.swift#L8-L17
has anyone used the SocketRocket library on iOS to make a Microsoft directLine-botframework client? I have tried it but the result is empty. If someone has made a Microsoft directLine-botframework client for iOS, I would like to know what library to use. Thank you very much
The problem was not from the SocketRocket library, the problem is that directLine only uses communication with websockets to respond, requests must be made with HTTP.
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.
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.
I have a desktop client application build under .net 4.0 and WPF.
In this application I need to send /Receive data from a client app on a Windows Mobile, this would be through Wifi.
I have no deep experience on this and would like to here your advise or approach on how to do it.
I already done such scenario throuh a wire network between different client through a WCF service hosted under a Server2008 but would like to do a be directionnal sync app between phone and my client.
Could you post me some ideas or sample approach?
thnaks for help
sergeenter code here
Check out servicestack. http://servicestack.net/. Pretty simple to get up and running on the server and client side. There isn't a WP7 client for it, yet but RestSharp works fine.
Sample of how you might host in a WPF app: