realtime

SKILL.md

Realtime — WebSocket Communication

Sails provides two tiers of realtime support via sails-hook-sockets: low-level room-based messaging (sails.sockets) and high-level model-centric notifications (Resourceful PubSub). Both use Socket.IO under the hood and integrate seamlessly with Sails' request lifecycle.

When to Use

Use this skill when:

  • Building chat, messaging, or collaborative features
  • Sending live notifications to specific users or groups
  • Broadcasting model changes (created, updated, destroyed) to subscribers
  • Tracking online presence or user status
  • Creating live dashboards with auto-updating data
  • Configuring WebSocket security, Redis adapters, or multi-server deployment
  • Integrating sails.io.js with React, Vue, or Svelte frontends

Rules

Read individual rule files for detailed explanations and code examples:

Weekly Installs
14
GitHub Stars
491
First Seen
Feb 12, 2026
Installed on
gemini-cli13
claude-code13
github-copilot13
codex13
kimi-cli13
amp13