Reputation: 1
I'm using Titanium Alloy to build a mobile app, and need to access our IRC for one of the features. I've set up a socket using Ti.Network.Socket.createTCP()
, which connects successfully, but after I send anything over the socket I get a 54 error:
The operation couldn’t be completed. Connection reset by peer
.
I believe the problem here is that Titanium sockets do not support SSL connections, which our IRC requires.
I've been looking into socket SSL for Titanium quite a bit. The Appcelerator docs do not mention SSL/TLS
at all, and all posts I've found related to these features missing seem to be from 2011, with no workarounds.
No luck on finding any modules that solve this either.
Is there a way to set up Titanium sockets to connect using SSL?
If not, is there a workaround/module that can allow me to do this?
Upvotes: 0
Views: 306
Reputation: 829
You could use SocketIO (on the server side) and for the Titanium App for iOS & Android, you could use this module, which works well (from personal experience): https://github.com/omorandi/tiws
Upvotes: 0