tippinggame/f8framework/f8-features-network-workflow

Claude Code and agent skill by tippinggame/f8framework

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when implementing or troubleshooting Network feature workflows — TCP, KCP, WebSocket client and server communication in F8Framework.

Install

npx vskill@latest install tippinggame/f8framework/f8-features-network-workflow

SKILL.md

The same SKILL.md was published earlier as tippinggame/f8framework/f8-features-network-workflow.

Network Feature Workflow

⚠️ IMPORTANT: Before using this feature, you MUST formally initialize F8Framework in the launch sequence. Ensure ModuleCenter.Initialize(this); has run first, then create the required module, for example FF8.Network = ModuleCenter.CreateModule<NetworkManager>();.

Use this skill when

  • The task is about network communication using TCP, KCP, or WebSocket.
  • The user needs to create client or server channels.
  • Troubleshooting connection, data transfer, or disconnection issues.

Path resolution

  1. Prefer project source at Assets/F8Framework.
  2. For usage docs, read: Assets/F8Framework/Tests/Network/README.md

Sources of truth

  • Runtime module: Assets/F8Framework/Runtime/Network
  • Test docs: Assets/F8Framework/Tests/Network

Key classes and interfaces

ClassRole
NetworkManagerCore module. Access via FF8.Network.
TcpClientChannelTCP client connection.
TcpServerChannelTCP server listener.
KcpClientChannelKCP client connection (reliable UDP).
KcpServerChannelKCP server listener.
SimpleWebClientWebSocket client.
SimpleWebServerWebSocket server.

API quick reference

TCP/KCP Client
csharp
TcpClientChannel client = new TcpClientChannel("TCP_CLIENT");
// or KcpClientChannel client = new KcpClientChannel("KCP_CLIENT");
client.OnConnected += () => LogF8.LogNet("Connected");
client.OnDataReceived += (byte[] data) => LogF8.LogNet(Encoding.UTF8.GetString(data));
client.OnDisconnected += () => LogF8.LogNet("Disconnected");
FF8.Network.AddChannel(client);
client.Connect("127.0.0.1", 8010);
client.SendMessage(Encoding.UTF8.GetBytes("Hello"));
client.Disconnect();
client.Close();
TCP/KCP Server
csharp
TcpServerChannel server = new TcpServerChannel("TCP_SERVER", 8010);
server.OnConnected += (int conv, string ip) => LogF8.LogNet($"Client {conv} connected from {ip}");
server.OnDataReceived += (int conv, byte[] data) => LogF8.LogNet($"Data from {conv}");
server.OnDisconnected += (int conv) => LogF8.LogNet($"Client {conv} disconnected");
FF8.Network.AddChannel(server);
server.Start();
server.Close();
WebSocket Client
csharp
TcpConfig tcpConfig = new TcpConfig(noDelay: true, sendTimeout: 5000, receiveTimeout: 5000);
SimpleWebClient wsClient = SimpleWebClient.Create(maxMessageSize, maxMessagePerTick, tcpConfig);
wsClient.onConnect += () => { };
wsClient.onDisconnect += () => { };
wsClient.onData += (ArraySegment<byte> data) => { };
wsClient.onError += (Exception e) => { };
wsClient.Connect(new Uri("ws://127.0.0.1:7778")); // or wss://
// Must call in Update:
wsClient.ProcessMessageQueue();
// Send data:
wsClient.Send(new ArraySegment<byte>(bytes));
wsClient.Disconnect();
// Use clientUseWss to toggle ws/wss scheme in UriBuilder
WebSocket Server
csharp
TcpConfig tcpConfig = new TcpConfig(true, 5000, 5000);
SslConfig sslConfig = SslConfigLoader.Load(sslEnabled, certPath, SslProtocols.Tls12);
SimpleWebServer wsServer = new SimpleWebServer(maxMessagePerTick, tcpConfig, maxMessageSize, maxHandShakeSize, sslConfig);
wsServer.onConnect += (int id, string ip) => { };
wsServer.onDisconnect += (int id) => { };
wsServer.onData += (int id, ArraySegment<byte> data) => { };
wsServer.onError += (int id, Exception e) => { };
wsServer.Start((ushort)port);
wsServer.ProcessMessageQueue(); // In Update
wsServer.SendOne(clientId, segment);
wsServer.Stop();
Optional multi-threading
csharp
FF8.Network.StartThread(); // Note: WebGL does not support threads

Workflow

  1. Choose protocol: TCP (reliable), KCP (reliable UDP, low latency), WebSocket (browser/cross-platform).
  2. Create channel with name and port.
  3. Register connection callbacks before connecting.
  4. Add channel to FF8.Network.
  5. For WebSocket, call ProcessMessageQueue() in Update.
  6. Serialize data as byte[] for transmission.
  7. Handle reconnection logic in OnDisconnected callback.

Common error handling

ErrorCauseSolution
Connection refusedServer not running or wrong portVerify server address and port
WebGL thread crashUsing StartThread() on WebGLDon't use multi-threading on WebGL
SSL handshake failsInvalid certificateCheck SSL config and cert.json. Ensure SslProtocols.Tls12 is used.
Data mismatchSerialization errorEnsure client and server use same byte order/format

Cross-module dependencies

  • None — Network is self-contained.

Output checklist

  • Protocol selected (TCP/KCP/WebSocket).
  • Client and/or server channels configured.
  • Data serialization format defined.
  • Validation status and remaining risks.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
870
Repository forks
139
7-day trend score
34

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tippinggame/f8framework/f8-features-network-workflow/badge)](https://verified-skill.com/skills/tippinggame/f8framework/f8-features-network-workflow)

Something wrong with this skill or its page? Tell us.