SyncVerse add-on, in beta
Text chat for your SyncVerse rooms
Room chat, channels, whispers, and the recent history for players who join late. An English and Arabic profanity filter, rate limits and a master mute come with it. It runs as plain SyncVerse RPCs, so your server needs no changes.
This panel is a live SyncVerse room. It is shared with syncverse.aqaddoura.com, sye.aqaddoura.com, three.syncverse.aqaddoura.com and VoiceVerse, so the people in it may be on any of those pages.
What players get, and what you control
Room chat and channels
Everyone in the room by default. The master client defines channels such as team-red; players join and leave them with /join and /leave.
Whispers
/w name text or chat.Whisper (player, text). The server delivers a whisper to that one player only.
History for late joiners
The master client keeps the last 64 lines in the room's buffered log. A player who joins gets them as the connection opens.
Typing indicator
"Sara is typing..." from OnTypingChanged. At most one update every 2 seconds, and it clears after 4 seconds of silence.
Moderation
A profanity filter for English and Arabic that also catches leetspeak and Arabizi. Add your own words and allowed names.
The master client can mute a player for everyone. IChatFilter hooks see every line in and out.
Rate limits
On send: a burst of 5 lines, then 1 a second. On receive, per sender: 8, then 2 a second, so a modified client can't flood the others.
Two drop-in panels ship with it, one for uGUI and one for UI Toolkit. Or build your own UI on the events. The built-in panels don't shape Arabic right to left; for Arabic display, render the lines in your own RTL-capable UI.
Ordinary RPCs on one shared view
Everything travels as SyncVerse RPCs on one scene view. It works with SyncVerse Cloud and with any self-hosted SyncVerse server today.
A line from send to screen
- Send The line passes your filter chain and the send rate limit. Your own line shows at once.
-
Relay
RPC
SvChatMsggoes to the others in the room. A whisper targets one player, and the server routes it to that player only. - Receive Every client runs the line through its own filters, the per-sender rate limit and the master's mute list. A modified client that skips its own filter is still masked on everyone else's screen.
- Keep history The master client stores the last 64 lines as 8 pages in the room's buffered log. When the master leaves, the new master republishes from its own copy.
Channels organise chat, they don't hide it: every client receives channel lines. Use whispers for anything private.
One menu item in Unity
GameObject > SyncVerse > Chat (uGUI) or Chat (UI Toolkit) adds the chat and a panel. Join a room as usual and the
chat binds to it. Type /help for the commands.
-
Commands
/w,/c,/join,/leave,/mute,/unmute. -
Events
OnLinefor every new line,OnTypingChangedfor nameplates. -
Web
ChatVerse is a Unity package. On the web, the same idea is a few lines of
@syncverse/clientRPCs (see the Web tab).
var chat = SyncVerseChat.Instance;
chat.Send ("gg"); // whole room
chat.Send ("push mid", "team-red"); // a channel
chat.Whisper (player, "meet at the bridge"); // that player only
chat.OnLine += line => Debug.Log (line); // every new line, yours too
chat.OnTypingChanged += (player, typing) =>
nameplates[player.Id].ShowTyping (typing);
// From your own input field: drives the typing indicator
chat.NotifyInput (inputField.text);
// Master client
chat.SetRoomChannels ("general", "team-red", "team-blue");
chat.MuteForEveryone (troll, true);
// Your own words and allowed names
chat.Profanity.AddWords ("noob");
chat.Profanity.AddAllowed ("Cockburn");
// A hook on every line in and out (IChatFilter)
chat.Filters.Add (new MyReportFilter ());
// Web: plain RPCs with @syncverse/client (from the SDK's chat example).
// This is not the ChatVerse wire format.
import { RpcTarget, SyncVerseSession, type SyncVerseRoom } from "@syncverse/client";
const session = new SyncVerseSession({ appId: "sv_app_...", roomName: "lobby" });
let room: SyncVerseRoom | null = null;
// "room" fires before joining, so buffered history reaches this handler too.
session.on("room", (r) => {
r.sceneView(1).onRpc("Say", ([text], info) =>
addLine(info.sender?.nickName ?? "someone", String(text)));
});
session.on("joined", (r) => (room = r));
function say(text: string) {
// AllBuffered: shows here at once and stays in the log for late joiners
room?.sceneView(1).rpc("Say", RpcTarget.AllBuffered, text);
}
session.start();
// Unity: Packages/manifest.json, "dependencies"
"com.syncverse.unity": "https://github.com/simple-yet-efficient/syncverse-unity.git#v0.2.0",
"com.syncverse.chat": "https://github.com/simple-yet-efficient/syncverse-chat.git"
// Web (plain RPCs)
npm install @syncverse/client
Unity 2021.3 or newer. The Web tab is a plain RPC chat; it does not talk to Unity ChatVerse clients.
Free during beta
Chat lines are ordinary room traffic on the SyncVerse account, dashboard and App ID you already have. One project gets rooms, chat and voice.
Free during beta, limits apply
Paid plans come later. The Free plan's numbers today:
- Projects
- 2
- Players at once, per project
- 20
- Players per room
- 16
Questions
What is ChatVerse?
ChatVerse is the text chat add-on for SyncVerse, a room-based multiplayer server with a Unity SDK. It adds room chat,
channels, whispers, history for late joiners, a typing indicator and moderation to a Unity game, as the Unity package
com.syncverse.chat.
Does it need a chat server or server changes?
No. It sends ordinary SyncVerse RPCs on one shared view, so it works with SyncVerse Cloud and with a self-hosted SyncVerse server as they are today.
Do players who join late see earlier messages?
Yes, the last 64 lines. The master client keeps them in the room's buffered log, and a joining player receives them as the connection opens. If the master leaves, the new master republishes from its own copy; a player who connects in that gap gets no history.
Does the profanity filter handle Arabic?
Yes. It covers English and Arabic, including leetspeak and Arabizi (Arabic written in Latin letters and digits). It is a word
list, so it will miss things. Pair it with the master mute and your own reporting through IChatFilter.
Are channel messages private?
No. Every client receives channel lines and filters them on arrival. Whispers are the private option: the server delivers them to one player.
Can I use it from a web page?
ChatVerse itself is a Unity package. A web page can run its own chat with @syncverse/client RPCs, as in the Web
code tab, but that is not wire-compatible with ChatVerse yet.
Is it ready for production?
Not yet. Version 0.1.0 compiles on Unity 2021.3 and 6000.3 and its 93 logic tests pass, but it has not had a full two-player test in a game yet.
Can I add voice chat to the same project?
Yes. ChatVerse and VoiceVerse use the same SyncVerse account, App ID and rooms.