Crowd Control SimpleTCP
Crowd Control Simple TCP is one of several methods available for pack developers connect games to Crowd Control. It uses a JSON-based protocol and allows games to act as a TCP client, TCP server, websocket client, or websocket server.
Connection Methods
The Simple TCP connector system allows for game clients to connect via one of multiple methods.
TCP Client
Crowd Control acts as a raw TCP client with the game acting as a listening server. Messages are encoded as null terminated UTF-8 strings.
TCP Server
Crowd Control acts as a raw TCP listening server with the game acting as a connecting client. Messages are encoded as null terminated UTF-8 strings.
Websocket Client
Crowd Control acts as a websocket client with the game acting as a listening server. Messages are encoded per the websocket standard (UTF-8 with websocket framing).
Websocket Server
Crowd Control acts as a websocket listening server with the game acting as a connecting client. Messages are encoded per the websocket standard (UTF-8 with websocket framing).
Examples
https://github.com/WarpWorld/CCPack-PC-Celeste
https://github.com/orcchamp/ccIsaac
https://github.com/qixils/minecraft-crowdcontrol
https://github.com/HarbourMasters/Shipwright/tree/develop/soh/soh/Enhancements/crowd-control