Skip to content

REDIS WebSocket Server is a simple NodeJS script used as a bridge to interact with Redis Server via WebSocket.

License

Notifications You must be signed in to change notification settings

acadevmy/redis-websocket-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REDIS WEBSOCKET SERVER

A simple bridge to use Redis in a WebSocket way!

REDIS WebSocket Server is a simple NodeJS script used as a bridge to interact with Redis Server via WebSocket.

Installing with Docker

Running the environment with Docker:

docker-compose up

Check if Redis WebSocket Server responds at ws://127.0.0.1:8080 address.

Redis WebSocket Server uses only these dependencies:

Send a command to Redis Server with Redis WebSocket Server

It will be necessary to send a WebSocket request with a payload like this:

{ 
    command: 'SET foo 10', 
    sessionId: this.sessionId, // Client Side generated
    date: Date.now() 
}

The response will be an object like:

// Standard Response
{
    response.command = 'SET foo 10';
    response.output = 'OK';
    response.status = 'ok';
}

// Response with error
{
    response.command = 'unknown';
    response.output = 'Invalid JSON';
    response.status = 'error';
}

Contribute

If you wish to contribute please read CONTRIBUTING.md file. Thanks for your future contributions!

 

🚀 Redis Patterns Console (Angular SPA) 🚀

Redis WebSocket Server is used, for instance, with Redis Patterns Project. It is used for communication between Redis Server and Redis Patterns Console.

With Redis Patterns Console you can try and go into the deep of Redis and its patterns with an interactive (and reactive) online console!
Visit https://acadevmy.github.io/redis-patterns-console and enjoy it!

Redis Patterns Console is an Angular SPA and an open-source project, so you can contribute if you wish.
Visit our repo on GitHub:
https://github.com/acadevmy/redis-patterns-console

📖 Redis Patterns Cookbook 📖

Furthermore, you can visit REDIS Patterns Cookbook repository and read some of the most common patterns of Redis, the greatest in memory database.

 

Maintained with ❤️ by Acadevmy

About

REDIS WebSocket Server is a simple NodeJS script used as a bridge to interact with Redis Server via WebSocket.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published