From 2ed9e3121f045b33ab51d5818be0c0358ef85240 Mon Sep 17 00:00:00 2001 From: MohamedSabthar Date: Wed, 14 Aug 2024 17:59:09 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Maryam Ziyad --- examples/http-sse-service/http_sse_service.bal | 2 +- examples/http-sse-service/http_sse_service.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/http-sse-service/http_sse_service.bal b/examples/http-sse-service/http_sse_service.bal index 96b26a7d71..f8c44f62f8 100644 --- a/examples/http-sse-service/http_sse_service.bal +++ b/examples/http-sse-service/http_sse_service.bal @@ -4,7 +4,7 @@ import ballerina/random; service /stocks on new http:Listener(9090) { // This resource method returns a stream of `http:SseEvent` (with stock prices) - // to push real-time data to clients using server-event events (SSE). + // to push real-time data to clients using server-sent events (SSE). resource function get .() returns stream { // Create a new value of type `StockPriceEventGenerator` to generate stock price events. StockPriceEventGenerator generator = new; diff --git a/examples/http-sse-service/http_sse_service.md b/examples/http-sse-service/http_sse_service.md index 5637c04467..352626bbab 100644 --- a/examples/http-sse-service/http_sse_service.md +++ b/examples/http-sse-service/http_sse_service.md @@ -1,6 +1,6 @@ # HTTP service - Server-sent events -Ballerina HTTP services support pushing real-time data to clients using Server-event events (SSE). A stream of type `http:SseEvent` can be returned from service resource methods. This feature automatically handles sending SSE and sets the content type to `text/event-stream` and the transfer encoding to chunked. +Ballerina HTTP services support pushing real-time data to clients using server-sent events (SSE). A stream of type `http:SseEvent` can be returned from service resource methods. This feature automatically handles sending SSE and sets the content type to `text/event-stream` and the transfer encoding to chunked. ::: code http_sse_service.bal :::