What the word "fork" actually means
A fork is not a mood, it is a mechanical fact. A project is a fork of another when it started from that project's source tree and carries it forward: the same file and folder layout, the same class and function names, the same database tables, often a LICENSE and a commit history that say so. Forks are normal and legal in open source. The test is simply whether the code came from the same place.
Apply that test here:
- Source tree. There is no shared directory layout, no shared template, no shared controller. The room you are reading this on is served by
ChatEngine, a Java WebSocket endpoint and its handlers. A PHP script has no equivalent of a WebSocket endpoint or of a Spring bean. - Data model. ChatSocket stores chat in MongoDB collections (
chat,private) and the rest in MySQL. A PHP chat installation has one MySQL schema and no document store. - Transport. ChatSocket holds one persistent socket per signed-in member and pushes events over it. The classic script asks the server "anything new?" on a timer. Different protocols, different server code, different failure modes.
- Dependencies. One runs on the JVM with Spring, Jackson and the servlet stack. The other runs on PHP with MySQL and a browser-side AJAX loop. A fork cannot change runtime and protocol and still be a fork; at that point it is a rewrite.
The two stacks, side by side
| ChatSocket | PHP AJAX chat script | |
|---|---|---|
| Language | Java | PHP |
| Runtime | Spring Boot on a servlet container | PHP-FPM behind a web server |
| Delivery | One WebSocket per member, server push | AJAX polling on a timer |
| Templates | JSP, server-rendered | PHP templates |
| Data | MySQL for accounts, rooms, plans; MongoDB for chat history | MySQL only |
| Hosting | Hosted and operated for you | Your server, your updates |
| Cost of a new live feature | Another event on an open socket | Another request, or a bigger poll |
Why the same feature list behaves differently
Both products can list typing indicators, presence, receipts and voice. What differs is what each of those costs once the room is busy.
With polling, the client has a heartbeat: every n seconds, for every open tab, the browser sends a request and the server runs a query. Nothing has to happen for that work to exist. Add presence and you poll presence. Add seen receipts and you poll receipts. Add a voice room and you are either polling for call state or bolting on a second connection. The traffic grows with members multiplied by features, which is why these installs get heavy as they grow.
With a socket, the connection is opened once and then carries events. A message is written once and fanned out from the server that holds the room; presence, typing, receipts, reactions and call signalling are just more event types on the same pipe. Idle rooms cost almost nothing, and adding a feature does not multiply idle traffic. That architectural difference is the whole reason ChatSocket can carry voice rooms, live radio, points, a leaderboard and an AI member in one room without the interface falling behind the conversation.
Why they look alike at a glance
Because a chat room is a solved visual problem. Message list, composer, member list, moderation controls. Every product in this category has them, the way every email client has an inbox and every shop has a cart. Similarity in a category is not evidence of shared code, and a shared code claim is the only one that matters here. If the interfaces were the test, every messaging app on earth would be a fork of the one before it.
What we did build ourselves
Ranks and powers
Unlimited ranks with their own colour, badge and granular powers, enforced on the socket endpoint, not in the browser.
Room themes
Eighty built-in themes plus an owner-made theme format, applied as custom properties per member.
Points and leaderboard
Activity scoring with a live board and rewards tied to the room economy.
Site radio and profile music
A multichannel player in the room and short clips on member profiles.
AI member
Evan answers by name, draws on request and assists moderation from inside the room.
Embed and iframe API
One script tag or an iframe, with a documented postMessage surface for hosts.
Check it yourself, in five minutes
- Open the live demo room and open your browser's Network tab. You will see a single WebSocket connection carrying frames as people talk, not a request every few seconds.
- Look at the response headers: a Java servlet container answers, not PHP. There is no
X-Powered-By: PHPand no.phproute anywhere on this site. - View the page source. The markup is rendered by JSP, and the room loads its client from
/content/lib/app/, which is a plain JS bundle rather than a jQuery AJAX loop. - Read the documentation and the feature list next to the PHP cost breakdown. Every claim about our side is something you can test on a free trial room.
Frequently asked
Is ChatSocket a copy of CodyChat?
No. Different language, different runtime, different protocol, different database layout, no shared source. It is an independent product in the same category, hosted rather than self-installed.
Why the same feature names then?
Because they describe the same jobs. "Voice room" and "moderation log" are category terms, not product names. The implementation behind them is what differs, and that is what we compare above.
Is CodyChat bad?
It is a competent self-hosted script and plenty of small rooms run it happily. Our point is narrower: a PHP polling install is the wrong tool once a room carries a lot of live features at once, and that is the gap a WebSocket platform fills. If you enjoy running your own server and your room is quiet, a script is a reasonable choice.
Where can I see the difference under load?
Open the demo, then open a second tab and watch the socket traffic as members, typing indicators, receipts and voice state change. Nothing multiplies. That is the practical difference between push and polling.
Judge it on your own room
Free for seven days, nothing to install. Run it beside whatever you use now and compare.