Skip to content

A mini project demonstrating Server-Sent Events (SSE) using a Go server for real-time data streaming

Notifications You must be signed in to change notification settings

PatricioPoncini/server-side-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Side Events in Go

This project demonstrates the use of Server-Sent Events (SSE) with a Go server to facilitate real-time data streaming. It allows dynamic updates to an index.html file, providing an interactive experience for users.

Overview

In this mini project, I explored the capabilities of SSE to push updates from the server to the client without requiring the client to make repeated requests. This enables efficient real-time data delivery for applications such as notifications, live updates, or dashboards.

Technologies Used

Stack

Getting Started

To run this project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/PatricioPoncini/server-side-events.git
cd server-side-events
  1. Install Go: Ensure you have Go installed on your machine. You can download it from Go website

  2. Run the Go server:

go run .
  1. Open the web page: Open the index.html file in your web browser to see the real-time updates in action.

Features

  • Real-time data streaming from the server to the client.
  • Dynamic updates in the web page without refreshing.
  • Lightweight and efficient use of resources.

Resources

Demo Video

Check out the demonstration of how this project works: Watch the video

About

A mini project demonstrating Server-Sent Events (SSE) using a Go server for real-time data streaming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published