ChatSocket / Compare / Originality

A question we get asked

Is ChatSocket a CodyChat fork?

No. It is a different language on a different runtime, with a different transport, a different database layout and no shared source. If you have read otherwise, here is the comparison you can check for yourself in about five minutes.

The short answer. ChatSocket is a Java application: Spring Boot on a servlet container, WebSocket for delivery, JSP for the pages, MySQL for accounts, rooms and plans, MongoDB for message history. CodyChat is a PHP chat script on a LAMP stack that delivers messages by polling. Those are not two versions of one program. They are two programs that happen to do the same job.

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:

The two stacks, side by side

  ChatSocket PHP AJAX chat script
LanguageJavaPHP
RuntimeSpring Boot on a servlet containerPHP-FPM behind a web server
DeliveryOne WebSocket per member, server pushAJAX polling on a timer
TemplatesJSP, server-renderedPHP templates
DataMySQL for accounts, rooms, plans; MongoDB for chat historyMySQL only
HostingHosted and operated for youYour server, your updates
Cost of a new live featureAnother event on an open socketAnother 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

  1. 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.
  2. Look at the response headers: a Java servlet container answers, not PHP. There is no X-Powered-By: PHP and no .php route anywhere on this site.
  3. 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.
  4. 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.

Create your room Full comparison

← All ChatSocket pages