Skip to content

j7nw4r/websocket-chat-server-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

websocket-chat-server-rs

websocket-chat-server-rs is a basic live chat server implemented in Rust.

Running

To run:

cargo run

When running websocket-chat-server-rs exposes one websocket endpoint at http://localhost:23234/ws/chat.

Sending messages

Messages are formed as follows:

{
    "type": "Message",
    "user": "<user_id>",
    "content": "<content string>"
}

Testing

Postman has a good websocket client for testing.

About

A basic websocket live chat implementation using Rust

Topics

Resources

Stars

Watchers

Forks

Languages