The two pieces
Socketchat has two pieces, and both come in one program,socketchat.
- The server is a program that stays running on one computer and passes sealed messages between people. Commands that start with
socketchat serverset it up and run it. - The app is the chat screen you type in. Plain
socketchatopens it, and it connects to a server.
Why there has to be a server
Every message goes from your app to the server, and from the server to each friend’s app:Every message goes through the server
192.168.1.20, and Socketchat has nowhere to type one in to reach a friend. Both of you connect to the same server instead.
Who runs the server
One person in the group runs the server, on a computer that stays on and that everyone can reach. That can be a computer at home, a small device such as a Raspberry Pi, or a cloud server rented by the month. Everyone else only needs the app. The person who runs the server usually chats too, often on the same computer. Apps find the server by its host: the name or IP address they dial, such aschat.example.com or 192.168.1.20. They connect on port 7444. A port is a numbered door on a computer that one program listens on. Host a server compares the ways to make the host reachable from your friends’ computers.
How people get in
People join with an invite link: a one-timesocketchat:// link that tells an app which server to dial and proves the person was invited.
- The person who runs the server makes a link with
socketchat server invite, and joins with it from their own app. - In the app, they start a room with
/newand make a link for each friend with/invite. - Each friend runs
socketchat join "<link>"with the link they got.
/invite handle the rest. Anyone in a room can invite more people, unless the server’s owner allows only admins to.
What the server cannot see
Each message is sealed on the sender’s computer, so the server passes it along without being able to open it; What the server sees lists what it does see.Which part do I set up?
I'm starting a group
Install Socketchat, run a server, then join it from the app and invite your friends.
A friend invited me
Install Socketchat, then run
socketchat join with their link. You do not need a server.Common mistakes
If you already set up a server with
localhost, change public_host in its config file, restart it and make new invite links. See Server settings.