Skip to content

An example of a SSE (Service Send Events) with a fastify-redis-channels plugin

Notifications You must be signed in to change notification settings

hearit-io/fastify-redis-channels-sse-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastify-redis-channels-sse-example

An example used for a fastify-redis-channels plugin.

Table of Contents

Install

Create a directory and clone the example repository as shown bellow:

mkdir sse
git clone https://github.com/hearit-io/fastify-redis-channels-sse-example sse
cd sse
npm install

Usage

To try this example make sure you have up and running Redis server on the default host localhost and port 6379. For more info about the installation see on Redis download page.

Start a server with a command:

node server

Open on a browser window the url http://localhost:3333

Open a new shell and produce a SSE message by calling for example:

cd sse
node produce 'Hello Wold'

You should see an updated information on a browser window.

Authors and acknowledgment

Emil Usunov

hearit.io

License

MIT

About

An example of a SSE (Service Send Events) with a fastify-redis-channels plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published