
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@bytesocket/types
Advanced tools
Shared TypeScript definitions for the ByteSocket ecosystem -- used internally by both the client and server packages.
You do not need to install this package directly; it is a dependency of the main packages.
StringKeys<T> - Extract only string keys from a type.StringNumberKeys<T> - Extract string or number keys.SocketEvents<T> - The event map shape for end-to-end type safety.EventsForRooms<T, R> - Extract events for a specific set of rooms.LifecycleTypes - Enum of all internal protocol message types (open, close, auth, ping, errors, room operations, etc.).ErrorContext - Structured context for error events (phase, error, event, raw, code, bytes).LifecycleType - Messages with only a type field (e.g., open, ping).LifecycleRoomType<R> - Success messages for single-room operations.LifecycleRoomsType<Rs> - Success messages for bulk room operations.LifecyclePayload<D> - Auth request message.LifecycleError - Global error messages (error, auth_error).LifecycleRoomError<R> - Error messages for single-room operations.LifecycleRoomsError<Rs> - Error messages for bulk room operations.LifecycleMessage<R, D> - Complete union of all lifecycle messages (combines the above).GeneralEvent<E, D> - Global user event.RoomEvent<R, E, D> - User event scoped to a single room.RoomsEvent<Rs, E, D> - User event scoped to multiple rooms.UserMessage<R, E, D> - Union of all user-defined messages.MsgpackrOptions - Type for msgpackr configuration (excludes internal useRecords must be false).AuthState - Enum of authentication states (idle, none, pending, success, failed).AnyCallback - Generic callback type (internal).All types are re-exported by @bytesocket/client and @bytesocket/uws. Import from those packages instead of directly from @bytesocket/types.
// ✅ Recommended
import { type SocketEvents, LifecycleTypes } from "@bytesocket/client";
// or
import { type SocketEvents, LifecycleTypes } from "@bytesocket/uws";
MIT © 2026 Ahmed Ouda
FAQs
Shared types and enums for ByteSocket
We found that @bytesocket/types 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
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.