Skip to content

zianwar/go-websocket-broadcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ws-broadcast

A simple implementation of a concurrent broadcast server that dispatches a message to the connected clients via the websocket protocol.

Diagram

Components:

consists of:

  • A counter that gets incremented frequently and its value will be broadcasted to all clients.
  • A hub component that registers and de-registers clients and broadcasts the counter value to the clients.

This is a basic React app that acts as a client to the broadcast server, which:

  • Establishes a websocket connection to the server and displays a green background upon a successfull connection.
  • Starts reading the counter value and displaying it.
  • Changes the background to red when the websocket connection closes or errors out.

Demo

Demo

About

Broadcast server implementation using websockets in golang.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published