Skip to content

JikokuAice/WebSocket-Message-Broadcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websocket Message Server

The goal of this project is to help me understand how to work with websockets and implement real-time communication between clients and servers.

I really hoped that this was project was valuable for my backend journy and will also be as foundations when i will learn SignalR in Asp.net

Run Locally

Clone the project

  git clone https://github.com/JikokuAice/WebSocket-Message-Broadcast.git

Go to the project directory

  cd WebSocket-Message-Broadcast

1 open Command Prompt (cmd) in project location

2 Run Websocket server

 dotnet run broadcast-server start

1 open Command Prompt another cmd in same project

2 Run the client to connect to the WebSocket

dotnet run connect-client

Exit from Websocket message room

As the client, type exit in the console and press Enter to leave the WebSocket message room.

Documentation

on progress

Features

  • Uses Cocona library for creating console app in Asp.net core
  • Create Websocket Server
  • Server listen for message and broadcast to all clients
  • Server eligently handle client abort or close state
  • Client can Send message
  • Client can receive message
  • Client can exit websocket Server
  • Server show who exited our Message Server in console

Screenshots

Starting Server

App Screenshot

Connecting first Client

App Screenshot

Connecting second Client

App Screenshot

Message exchange

App Screenshot

client exits

App Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages