Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Omegle work?

Tags:

javascript

php

Sorry for the vague question, but Omegle has exactly what I want for my site. It's the bare chat system. You send and receive messages instantly. I've spent today looking for a shoutbox method, but all I could find were people saying to use MySQL and javascript intervals to keep checking. Omegle updates instantly with new messages though. How does it all work?

like image 916
mowwwalker Avatar asked Aug 29 '11 09:08

mowwwalker


1 Answers

You should read this wikipedia article, it will give you a better insight of the process.

The main keywords here are long-polling, websockets, flash sockets.

Also, this is (one of the places) where node.js+socket.io shine.

like image 196
Gabi Purcaru Avatar answered Oct 12 '22 08:10

Gabi Purcaru