Skip to content

Repository files navigation

oneStreamRpg2Extension

🎮 Personal Player Channel System

This project includes a complete implementation of the Personal Player Channel system with:

  • ✅ Optimistic updates (instant UI feedback)
  • ✅ Automatic rollback on errors
  • ✅ Real-time state synchronization
  • ✅ Reconnection handling
  • ✅ Full TypeScript support

📚 Documentation

🚀 Usage

import { usePersonalChannelStore } from "./store/personalChannelStore";
import { usePersonalChannelActions } from "./hooks/usePersonalChannelActions";

// Read state
const { displayedState, isReady } = usePersonalChannelStore();

// Send actions
const { socket } = useSocketStore();
const { equipItem, unequipItem } = usePersonalChannelActions(socket);

See examples in src/examples/ and src/components/inventory/


⚙️ Prerequisites

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages