monro93 / poc-server-sent-events-kt-js

Proof of concept for server sent events using Kotlin and JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POC - server sent events kotlin + js

Description

This repository is a proof of concept to try the server sent events HTTP standard. It consits in the following parts:

Installation

mvn clean install

Starting the app

mvn spring-boot:run

Usage

Go to localhost:3099
Click on the button Connect, a call to /emitter would be done. After click on RegisterEvent and a GET call without response content to /register-event will be done. Notice how the output is being updated without any petition from the FE.

About

Proof of concept for server sent events using Kotlin and JavaScript


Languages

Language:Kotlin 66.6%Language:JavaScript 24.9%Language:HTML 8.5%