MOCK PLAYGROUND / PROTOCOL 1.0.0
Real connections.
Simulated interactions.
Build with likes, gifts and comments before going LIVE. No LIVE Studio installation or production credentials needed.
01 Connect your game
Not startedOne private test session. Expires in 30 minutes.
How to connect from H5 / Unity
Use the endpoint above in Mock mode. Wait for SERVER_HELLO, validate its four fields, send AUTH using these test credentials, then process EVENT only after AUTH_RESULT.success is true.
The game must support an explicit Mock endpoint. A client that only scans localhost cannot connect to this service without a small connection-layer change.
Create a session for a JavaScript example.
Unity / Unreal: use your normal WebSocket library and the same JSON exchange. No Socket.IO or subscription command is required.
02 Trigger an interaction
Events go only to authenticated games in this session.
Connection checks
The built-in receiver uses a real WebSocket and counts as one game connection.
Test receiver: offline
03 Inspect messages
“Sent” means forwarded to a socket, not that a game effect ran. “Received” is from the built-in receiver.
Your handshake and event messages will appear here.