api-websocket

Enable real-time bidirectional WebSocket communication from Spectacles using InternetModule.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/specs-devs/agentic-tools --skill api-websocket
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-websocket
Source: https://github.com/specs-devs/agentic-tools/tree/main/skills/api-websocket
Command: npx skills add https://github.com/specs-devs/agentic-tools --skill api-websocket

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web developers need a straightforward way to implement real-time, bidirectional communication between Spectacles-powered apps and servers, enabling live data streaming and remote control capabilities.

Core Features & Use Cases

  • Real-time text and binary frame handling via InternetModule.
  • Stable connection lifecycle with reconnects and error handling.
  • Use cases include live dashboards, sensor data feeds, collaborative sessions, and remote command channels in Spectacles experiences.

Quick Start

Establish a WebSocket connection using the InternetModule and begin streaming real-time messages.

Frequently Asked Questions about api-websocket

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream live data to Spectacles using a WebSocket connection?

To stream live data to Spectacles via WebSocket, use Lens Studio-compatible TypeScript and the InternetModule to enable bidirectional text and binary frame handling for real-time server communication.

What is the InternetModule used for in Lens Studio?

The InternetModule in Lens Studio is used to establish real-time, bidirectional WebSocket connections, enabling live data streaming, remote control, and collaborative sessions directly within Spectacles experiences.

Does the WebSocket connection in Spectacles support secure wss:// URLs?

Yes, secure WebSocket connections require the wss:// protocol for proper server URL handling, while the ws:// protocol is limited to testing or experimental APIs within Lens Studio Spectacles projects.

Can I handle binary frames over a WebSocket in Lens Studio?

Yes, you can handle both text and binary frames over a WebSocket in Lens Studio using the InternetModule, allowing you to transmit complex live sensor feeds and remote command channels.

How to manage WebSocket reconnects and errors in Spectacles?

Managing WebSocket reconnects and errors in Spectacles involves utilizing the stable connection lifecycle features provided by the InternetModule to handle connection drops and maintain continuous live data streams.

What are the limitations of using ws:// versus wss:// for Spectacles?

The limitation is that ws:// connections require testing or experimental APIs, whereas wss:// is the standard for secure WebSocket server URL handling in Lens Studio Spectacles deployments.