Can I use SwiftNIO client websocket with different server websocket? - ios

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

Related

i need a library on iOS to make a Microsoft directLine-botframework client

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.

Support for HTTPS web server iOS

I have used GCDWebServer for an http server on iOS. However, by the end of the year https will be required. Is there another web server library compatible with https for IOS? I have no idea what is involved with a change like this.
This library supports https -
https://github.com/robbiehanson/CocoaHTTPServer
Although its old but very reliable. Our company have been using it for over 4 years and currently we are in process of switching to 'https'.

STUN/TURN/ICE implementation with Ejabberd server and XMPP client iOS

I am using ejabberd-16.04 on my mac and XMPPFramework from robbiehanson.
It works fine for chatting, no problem.
But now I want to add voice calling into my application.
I am using Jingle Protocol for call establishment and it works fine for direct communication (i.e. both caller and callee are in same network).
The problem I am facing is for cross-network and I want to implement Jingle ICE for this, NATed clients.
1 Can any one tell me how can I enable and use STUN/TURN module on ejabberd server and same thing at client side.
1.1 Iam also facing problems with urn:xmpp:extdisco:2 for external service discovery.
2 Is there any library for XMPP which implements Jingle-ICE for iOS?
The community version of ejabberd includes STUN and TURN.
https://docs.ejabberd.im/admin/guide/configuration/#stun-and-turn
You'll need to configure SRV records for both STUN and TURN in order for client discovery of STUN/TURN to work correctly.
http://wiki.xmpp.org/web/SRV_Records#STUN_SRV_records
The only significant limitation is that TURN Authentication does not work with SCRAM password storage.

IOS Chat app with back end .NET server

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

Receive /Send data through Wifi under Windows Mobile 7.5

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:

Resources