Skip to content

A pubsub server using SSE written in rust using actix-web.

Notifications You must be signed in to change notification settings

Pogify/actix-sse-pubsub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actix-sse-pubsub

This is derived from the pubsub in https://github.com/actix/examples which is under the Apache license.

Usage

cargo run --release

Events are at /events/{channel}

To broadcast, send a post request to /broadcast with json content of:

{
  "channel": "channel name",
  "msg": "message to broadcast"
}

To benchmark, run multiple instances of

python3 benchmark.py