Files
ocis/services/sse/_index.md
T
Juan Pablo Villafañez 407527023b Merge pull request #9684 from owncloud/collaboration_improved_tracing
feat: include additional metadata for tracing the collaboration service
2024-08-13 09:38:53 +00:00

1.7 KiB

title, date, weight, geekdocRepo, geekdocEditPath, geekdocFilePath, geekdocCollapseSection
title date weight geekdocRepo geekdocEditPath geekdocFilePath geekdocCollapseSection
SSE 2024-08-13T09:37:16.526285088Z 20 https://github.com/owncloud/ocis edit/master/services/sse README.md true

Abstract

The sse service is responsible for sending sse (Server-Sent Events) to a user. See What is Server-Sent Events for a simple introduction and examples of server sent events.

Table of Contents

The Log Service Ecosystem

Log services like the userlog, clientlog and sse are responsible for composing notifications for a certain audience.

  • The userlog service translates and adjusts messages to be human readable.
  • The clientlog service composes machine readable messages, so clients can act without the need to query the server.
  • The sse service is only responsible for sending these messages. It does not care about their form or language.

Subscribing

Clients can subscribe to the /sse endpoint to be informed by the server when an event happens. The sse endpoint will respect language changes of the user without needing to reconnect. Note that SSE has a limitation of six open connections per browser which can be reached if one has opened various tabs of the Web UI pointing to the same Infinite Scale instance.

Example Yaml Config

{{< include file="services/_includes/sse-config-example.yaml" language="yaml" >}}

{{< include file="services/_includes/sse_configvars.md" >}}