Using Socket I/O client in Objective-c - ios

HI i'm new to using socket I/O.
I would like to use the socket send and receive functions in multiple screens like a chat app. I'm not understanding how to handle it. can anyone help me.
I'm using the socket from https://github.com/socketio/socket.io-client-swift
I'm using objective-c coding

My dear friend,
Links below are links I've read when I developed iOS Chat Client using Socket.io recently,
If you're a project based learner, you can see full working iOS Chat Client Using Socket.io sample here: https://github.com/bonnguyen/socket.io_chat_swift
Just try to build and run it. It helps me a lot, but unfortunately it's written in Swift. Hope you can translate it to Obj-C by yourself.
Bonus:
for your information, for chat view, you can use this library: https://github.com/jessesquires/JSQMessagesViewController
or if you like to create your own code for chat view, you can read this tutorial:
http://www.innofied.com/creating-old-style-message-bubble-swift/

Related

Telegram API swift (or objective-c) client, to read channel messages

I'm wondering if it's possible the read messages from telegram channel from the iOS app.
I want to parse public channel to implement an application which will show a map with latest Air-Raid sirens in Ukraine. There's official channel here - https://t.me/air_alert_ua, which I'd like to parse, and then draw an overlay on the map in an iOS app, like on the following web-site.
I know that there's telethon client for python, but running python inside iOS app isn't a very good idea and perhaps there's a better way. Any help is greatly appreciated.

Video call and chat using WebRTC and Pubnub in native iOS Swift

I'm working on a doctor-patient appointment app on native iOS Swift project. Here I want to implement a live video call with chat using WebRTC and PubNub signaling server. I'm totally new to it. I don't know how to implement this. I have seen some of the Objective-C codes but still I didn't understand. Please help if any of you implement the same in swift.
Highly recommend you reach out to a service such as Vonage (https://www.vonage.com) who can provide HIPAA compliant WebRTC video service for you.
Once you have a set of keys on Vonage, you can use PubNub to move the video session details around the channel in question.
Traditionally I use a JSON object model that looks like this:
channel: "UUID of medical session"
messageID: "MessageID on your platform"
messageType: "videoInvite"
sender: "Hilaj"
sessionDetails: "session JWT and/or session token"
timestamp: "1597347054"
This means you can send text based messages as well as video invites in the same channel and write the event to logs.
I have implemented this in Swift (and previously in Objective C) but it is completely proprietary.
You are going to have to download the Google WebRTC framework.
Taking a quick look at PubNub, it looks like it just does signalling. You are still going to need an actual WebRTC server (eg, Janus). There are others and I'm not really sure which ones support PubNub.

iOS - XMPP with WebRTC for realtime video call or chat

I have searched the whole web but did not get any document for passing the XMPP IQ to WebRTC. Also I see is the XMPP Jingle class, but cannot find any document for integrate this.
Can someone help me with setting up a two-way video call using XMPP and WebRTC? By providing a working sample of Objective-C code?
I have tried:
Checking https://github.com/YK-Unit/AppRTCDemo and many other Github projects.
Are you want to support different platforms to get live video streaming?
So, i have a very good experience with https://www.nanocosmos.de/ library.
It's supports iOS, Android and Web. Has demo applications and trial period.
About documentation:
XMPP Framework: https://github.com/robbiehanson/XMPPFramework/wiki/IntroToFramework
It's very good documented.
WebRTC Native Code:
https://webrtc.org/native-code/ios/
It's contains all information about WebRTC.

How to implement webRTC in iOS app

I have successfully implemented xmpp Connection and text chatting by using xmpp in my application. Now want to implement video calling by using webRTC. I don't know the exact procedure for it. I have searched about it but, I'm unable to implement the video chat.
If anyone have any idea about the procedure, please help me.
look at the webrtc.org code. The library compiles with bindings for iOS, and the app (appRTCDEMO) provides a full example for iOS. It's a great start.

XEP-0166: Jingle protocol implementation for voice/video chat in iOS

I have already implemented chat with text message using XMPP framework for iOS. But, now I want to implement voice/video chat using XMPP framework in iOS. So, anybody know about how to implement XEP-0166: Jingle Protocol with available XMPP framework in iOS/Objective-C? Thanks in advance.
http://oriolrius.cat/blog/wp-content/uploads/2009/10/Oreilly.XMPP.The.Definitive.Guide.May.2009.pdf
Refer This book regarding XMPPFramework. In this book all things are described regarding all fetchers provided by XMPP like one to one messaging, file sharing, voice call, video call and etc.
In this book how to send stanzas to server and client are described in detail.
hope this book will help u.

Resources