[websocket] Change EventWebSocketAdapter adapter id to `events` (#4540)

This is aligns the event WS name with the SSE events endpoint.
This is a breaking change for clients that have explicitly used `/ws/event-subscriber` instead of the default `/ws`.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
pull/4541/head
Florian Hotze 2025-01-06 19:57:55 +01:00 committed by GitHub
parent 13eeea96e8
commit f8fdd66f78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ import com.google.gson.Gson;
@NonNullByDefault
@Component(immediate = true, service = { EventSubscriber.class, WebSocketAdapter.class })
public class EventWebSocketAdapter implements EventSubscriber, WebSocketAdapter {
public static final String ADAPTER_ID = "event-subscriber";
public static final String ADAPTER_ID = "events";
private final Gson gson = new Gson();
private final EventPublisher eventPublisher;