Is it possible to use Web Sockets with Apple Watch? For example using Starscream - swift

Does Apple Watch support Web Sockets? Is it possible to use an external library like Starscream? https://github.com/daltoniam/Starscream

Starscream doesn't work with SSL on watchOS because it is missing "the kCFStream properties"

I tried and yesss it works!!! Apple Watch supports Web Sockets ;)
EDIT:
It doesn't work anymore in WatchOS 6/6.1 :(
Go here for more info: Why is Starscream not working anymore on real Apple Watch (WatchOS 6)?

Related

Is it ok to use Unoffical Airplay protocol?

I have come across this link
http://nto.github.com/AirPlay.html while searching for ways to implement Airplay. I dont have an apple tv so I was testing using Airserver. I could achieve the image sharing via the unofficial protocol.
My question is that if I put up an application like this to iTunes, will it be accepted?
recently, lots of airplay hack apps have been removed from the AppStore:
https://www.google.es/search?sourceid=chrome&ie=UTF-8&q=airplay+removed+appstore
IF it's an open-source project then should be fine, otherwise Apple doesn't allow private protocol - frameworks.

Chat Option for iphone

I have to implement chatting functionality for iphone (login basis).I dont have any clear cut idea most of the sample code will support macos supported framework
You can use XMPP / Jabber, IRC, SILC protocol to get chat functionality for your application.
If you're going to use XMPP as the previous answer suggested i would recommend trying out
http://code.google.com/p/xmppframework/

Are there any other SIP implementations for iPhone besides Siphon?

I'm trying to build a SIP app for iPhone 4 (iOS 4.2).
Tried to use siphon, but no success (IOKit.framework is missing from the sdk, libg729a.a is also missing).
Is there any other way to implement SIP for iPhone?
Check out pjsip, and their iPhone Getting Started Guide. Siphon uses it too, but hasn't been updated for quite a while (which explains the build issues with the new SDKs.)
If what you are looking for is a pure SIP stack, then we are licensing a commercial one for customers: http://www.radvision.com/Products/Developer/VoIP-Developer-Tools/SIP-Developer-Suite/

WebSockets client for Objective-C (preferably iOS compatible)

Closest thing I've found is How to incorporate WebSockets into a Cocoa application, but the answers only pointed to an outdated library.
Does anyone know about a WebSockets library compatible with iOS 4.x?
I've also read about Pusherapp, and, as good as the service could be, I would prefer to use my own WebSockets server.
You can check out the UnitT Web Socket Client. It is intended for use in iOS apps using Objective-C. It works with both ws & wss.
I am the author and have been using it in some of my projects with success. Let me know if you run into any trouble and I will do what I can to help.
Found this post in a google search for iOS WebSockets and wanted to put an updated answer.
Anyways, Zimt and Unitt's client don't support the latest standard (at the time of writing this).
(disclaimer: author of SocketRocket)
We just released a new library that has no external dependencies, supports RFC 6455 completely, and works with iOS 4.x+.
It's called SocketRocket and can be found here
You could make a web application using one of several Cocoa-like libraries and then convert it to a native app using something like PhoneGap/Apache Cordova.
Cappuccino - Make webapps using Objective-J and Cocoa-like API.
WebSockets for Cappuccino
SproutCore - Apple's Cocoa for the web
Toth - a multi-user SproutCore library that uses WebSockets.
For the server side there are lots of options. Just search for "websockets server" on github.com.
I created a package for iOS/Objective-C and TLS taking into account the new iOS13 TLS restrictions. It works with a NodeJS TLS server how I use it. Hope it helps, feel free to contribute.
https://github.com/eamonwhiter73/IOSObjCWebSockets

Access iTunes library on Mac from iPhone app

Is there a way I can connect to the iTunes library on Mac from my iPhone app. The functionality which is available in Remote app from apple. I beleive this is something to do with bonjour programming.
Can anyone provide me any head start and point me in the right direction to look for?
Thanks
You can't. iTunes uses a protocol called DAAP. While DAAP itself has been reverse engineered, the current version of iTunes uses an authentication mechanism that is not public and has not been reverse engineered.
What that means is while people can implement unauthenticated servers that iTunes can connect to, no one but Apple can currently implement clients that connect to iTunes itself.
This is a good place to start. He's the guy who wrote the Android remote, after reverse-engineering DACP.
What about installing software like Accesstunes on your computer, then use the IP in your browser !? I used to do it with my Nokia N95-8G..! I will try with the iphone in a bit to see !