
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-shared
Advanced tools
ECS Framework 网络库 - 共享组件和类型定义
这是 ECS Framework 网络库的共享包,包含了客户端和服务端通用的:
@SyncVar, @ClientRpc, @ServerRpc 等)npm install @esengine/ecs-framework-network-shared
import { NetworkComponent, SyncVar, ClientRpc, ServerRpc } from '@esengine/ecs-framework-network-shared';
@NetworkComponent()
class PlayerController extends Component {
@SyncVar({ onChanged: 'onHealthChanged' })
public health: number = 100;
@SyncVar()
public playerName: string = '';
@ClientRpc()
public showDamage(damage: number): void {
// 客户端显示伤害效果
}
@ServerRpc()
public movePlayer(direction: Vector3): void {
// 服务端处理玩家移动
}
private onHealthChanged(oldValue: number, newValue: number): void {
console.log(`生命值从 ${oldValue} 变为 ${newValue}`);
}
}
MIT
FAQs
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.