Skip to main content

SignalR

SignalR provides the live connection used to move simulator conversations through WinnerWare in real time.

Overview

In the current codebase, SignalR is used as a communication layer for interactive simulator experiences rather than as a standalone admin module. It keeps the browser and the server connected while a simulation is running so messages can move back and forth without page reloads.

Key Features

  • Supports live simulator chat sessions.
  • Supports live voice-session streaming for simulator conversations.
  • Starts new simulator sessions and returns session details to the browser.
  • Sends user messages to the server and returns the next response immediately.
  • Supports reconnecting the browser connection when the session drops.

How It Works

WinnerWare uses a live hub connection in the simulator experience so the page can:

  1. start a new session
  2. send typed messages
  3. stream recorded audio
  4. receive the next assistant response
  5. continue the conversation without refreshing the page

This is what lets the simulator chat and voice experiences feel immediate. The client keeps an open connection, and the server uses that connection to deliver introductions, user messages, tips, and assistant responses as the scenario moves forward.

Usage

This is most visible in the Agent Trainer simulator flow, where both the Chat and Voice simulator screens rely on the live connection.

That means SignalR is part of the runtime path for:

  • simulator chat exchanges
  • streamed voice input
  • session start information
  • live assistant replies during a role-play or training interaction

Developer Notes

  • The current repository does not contain a standalone CloudSolutions.SignalR module.
  • Instead, the live connection is implemented directly in the Agent Trainer simulator flow.
  • The simulator startup maps a hub endpoint, and the chat and voice views connect to it from the browser.
  • Voice mode streams recorded audio chunks to the server, where the session continues through the same live channel.