
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@esengine/ecs-framework-network-client
Advanced tools
该包提供了完整的网络客户端功能,包括连接管理、预测、插值等现代网络游戏必需的特性。
npm install @esengine/ecs-framework-network-client
import {
NetworkClient,
WebSocketClientTransport,
ClientNetworkBehaviour,
SyncVar,
ServerRpc
} from '@esengine/ecs-framework-network-client';
// 创建网络客户端
const client = new NetworkClient({
transport: 'websocket',
transportConfig: {
host: 'localhost',
port: 8080,
secure: false
}
});
// 连接到服务器
await client.connect();
// 认证
const userInfo = await client.authenticate('username', 'password');
// 获取房间列表
const rooms = await client.getRoomList();
// 加入房间
const roomInfo = await client.joinRoom('room-id');
class PlayerController extends ClientNetworkBehaviour {
@SyncVar({ clientCanModify: true })
position: { x: number; y: number } = { x: 0, y: 0 };
@SyncVar()
health: number = 100;
@ServerRpc({ requireLocalPlayer: true })
async move(direction: string): Promise<void> {
// 这个方法会被发送到服务器执行
}
@ClientRpc()
onDamaged(damage: number): void {
// 这个方法会被服务器调用
console.log(`Received damage: ${damage}`);
}
}
import { PredictionSystem, InterpolationSystem } from '@esengine/ecs-framework-network-client';
// 启用预测系统
const predictionSystem = new PredictionSystem(scene, 64, 500);
scene.addSystem(predictionSystem);
// 启用插值系统
const interpolationSystem = new InterpolationSystem(scene, {
delay: 100,
enableExtrapolation: false
});
scene.addSystem(interpolationSystem);
✅ 编译成功 - 所有 TypeScript 错误已修复,包生成完成
MIT
FAQs
ECS Framework 网络库 - 客户端实现
The npm package @esengine/ecs-framework-network-client receives a total of 0 weekly downloads. As such, @esengine/ecs-framework-network-client popularity was classified as not popular.
We found that @esengine/ecs-framework-network-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.