websocket-integration

Builds a C# WebSocket client for Cortana chat messages and streaming AI replies.

46|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/sunyonghuan/Netor.Madorin --skill websocket-integration-sunyonghuan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: websocket-integration
Source: https://github.com/sunyonghuan/Netor.Madorin/tree/main/.github/skills/websocket-integration
Command: npx skills add https://github.com/sunyonghuan/Netor.Madorin --skill websocket-integration-sunyonghuan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build clients that connect to the Cortana AI service over WebSocket, so you can send messages, receive streaming replies, and react to live system events without manual polling.

Core Features & Use Cases

  • Connects to the service endpoint for real-time conversation.
  • Supports streaming token-by-token replies, stop control, attachments, and event messages such as speech and wake-word notifications.
  • Fits C# desktop or service clients that need low-latency AI interaction, including remote assistants, live chat tools, and multimodal apps.

Quick Start

Use the websocket-integration skill to connect a C# client to the Cortana WebSocket endpoint and stream the reply to a simple test message.

Frequently Asked Questions about websocket-integration

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

FAQPage Schema
How do I stream real-time chat replies from a WebSocket AI service in C#?

To stream real-time chat replies from a WebSocket AI service in C#, build a client that connects over WebSocket to send messages and processes incoming token streaming events as they arrive.

Can I handle speech-to-text and wake-word events over a WebSocket connection?

Yes, a WebSocket connection can handle speech-to-text and wake-word events by implementing a client that parses incoming event messages and reacts to live system notifications without manual polling.

How do I ensure C# WebSocket clients are AOT-safe when parsing JSON streaming responses?

To ensure C# WebSocket clients are AOT-safe when parsing JSON streaming responses, use AOT-safe JSON source generation to serialize and deserialize incoming event data without runtime reflection.

Does WebSocket integration support sending attachments during a real-time chat session?

Yes, WebSocket integration supports sending attachments during a real-time chat session by transmitting message payloads and related attachment data directly through the established WebSocket connection.

What is the best way to stop a streaming AI reply from a C# desktop client?

The best way to stop a streaming AI reply from a C# desktop client is to implement stop control logic over the WebSocket connection, sending a specific signal to halt the ongoing token stream.

How should a C# WebSocket client handle unknown messages or connection errors?

A C# WebSocket client should handle unknown messages or connection errors by implementing unknown-message tolerance for unrecognized payloads and properly processing connected, done, and error events.