Skip to content

obox-systems/demo_chat_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple chat API backend demo

This is a backend for a chat.

The essence of the work is that the client sends a message to the backend and these messages are shared with other connected clients via websockets.

GIF demo

Try it out!

  1. Install Rust
  2. Run the server:
$ cargo run --release
  1. Use an API client of your choice to send and receive messages:
POST 127.0.0.1:8080/message
GET 127.0.0.1:8080/messages
  1. As for continuous message updates you can use websocat:
$ cargo install websocat

$ websocat ws://127.0.0.1:9090

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages