Skip to content

vinyll/V-Server-Sent-Event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published