vinyll / V-Server-Sent-Event

A simple server written in V for testing Server Sent Events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Real-Time ServerSentEvent Server Written in V

V is an easy, ridiculously fast and minimalist language.

Installation

You should first install V on you system, it's very easy and standalone or run v up to update it if you had played with it a while ago.

Then run the following:

git clone https://github.com/vinyll/V-Server-Sent-Event.git
cd V-Server-Sent-Event
v run src

Your server will be running on port 8081.

This is just a V test on running a minimalist self-hosted real-time ServerSentEvent app.

Usage

I use HTTPie but anything down to cURL would do.

Read the full thread:

http :8081

Add a comment and get the updated thread:

http post :8081/message author="bob" body="Imagine all the people living life in peace 🕊️"

About

A simple server written in V for testing Server Sent Events


Languages

Language:V 79.0%Language:HTML 21.0%