WebSocket

Use the WebSocket protocol to connect a website or application to a Squiz Conversational Search agent and display answers as they are generated. This page introduces the connection and message flow for developers implementing the client-side connection.

  • Send a question

    Connect to the websocket and send a question

  • Handle server messages

    Handle connection responses, streamed answer text, completion events, and errors.

  • Client lifecycle

    Manage conversations, keep connections alive, collect feedback, and implement a client.

  • Troubleshooting

    Diagnose connection, answer, and conversation-state problems.