DEV Community

Arif Istiak
Arif Istiak

Posted on • Updated on

How does Facebook receive incoming chat data through web socket ?

So I was poking around with Facebook messenger web sockets , a strange thing I noticed that incoming socket event response ( when a message is received ) does not contain the message itself but some sort of JS code like this link , then ok I thought when this code executes then it might call some API to retrieve the actual message but I did not find any follow-up requests that gets the actual message !! . Am I missing something ? where does the actual text message come from ?

Top comments (0)