Farid Farhat
Farid Farhat

Reputation: 2310

Difference between Socket Connection and XMPP Connection

I am new to these two connections. I used to work with HTTP Connection before and now I wanna move to a new type of connection. I searched about connections and got these two types: Socket Connection and XMPP Connection. What is the main difference between them? I wanna use this for a chat application so which type is better recommended? Thanks

Upvotes: 0

Views: 2141

Answers (2)

Suraj Chandran
Suraj Chandran

Reputation: 24791

XMPP is a protocol for communication and so is HTTP. Both XMPP and HTTP will internally use socket connections.

You are confused between application protocols and network layer.

Upvotes: 12

Buhake Sindi
Buhake Sindi

Reputation: 89169

Socket is the essential thing of any existing connections there is. If you want to use any connection that has a host point and a port, very likely (unless they write their own), they use Socket (to open a connection on a given port, send a message, and close the connection port) internally.

Upvotes: 2

Related Questions