networking
Installation
SKILL.md
Game Networking
Implement real-time multiplayer networking with WebSocket, UDP, and latency optimization.
WebSocket Game Server
const WebSocket = require('ws');
class GameServer {
constructor(port = 8080) {
this.wss = new WebSocket.Server({ port });
this.players = new Map();
this.setupHandlers();
}
setupHandlers() {
this.wss.on('connection', (ws, req) => {
const playerId = this.generateId();
Related skills
More from pluginagentmarketplace/custom-plugin-server-side-game-dev
message-queues
Message queue systems for game servers including Kafka, RabbitMQ, and actor models
2state-sync
Game state synchronization, snapshot systems, and conflict resolution for consistent multiplayer experience
2design-patterns
Game server design patterns including ECS, command pattern, and event sourcing
2multithreading
Multithreading and concurrency patterns for game servers including synchronization primitives
2async-programming
Asynchronous programming models including coroutines, async/await, and reactive patterns
2data-serialization
Efficient data serialization for game networking including Protobuf, FlatBuffers, and custom binary
2