Server just have to set the connection between two apps. and then apps can communicate directly with each other without server involvement.
So what are the other possibility to communicate two devices directly without the evolvement of server.
I used websockets for that in nodejs and its working but don't want the involvement of server to send those message. on the other side I try to use WebRTC but that is used for calling and streaming purpose its based on UDP. so we can't use WEBRTC for chatting purpose.