2.0.0-beta.21 • Published 3 years ago

@gang-js/core v2.0.0-beta.21

Weekly downloads
13
License
ISC
Repository
github
Last release
3 years ago

gang

A state sharing algorithm using a websocket relay server in c# on net5.0 and JS client

Overview

A gang has a set of members running the same code, one member is designated as the host.

All members can issue commands, these are sent to the current host. The host executes the command and broadcasts the current state to all members.

Should the host be disconnected from the gang, an other becomes the host.

Gangs are controlled by a single relay server, but the work is done by the current host.

Packages

LibraryDescriptionUrl
GangCore library for relay serverhttps://www.nuget.org/packages/Gang
Gang.WebSocketsGang for Web Socketshttps://www.nuget.org/packages/Gang.WebSockets
@gang-js/coreJS client servicehttps://www.npmjs.com/package/@gang-js/core

Demo

This is a simple Gang Chat app, written with TypeScript and .Net5.0

Clone the repo and open the solution $/demo/gang.sln Set Gang.Web as startup

Make sure you build the client app, npm install then npm run build

Run in visual studio and the ui will popup up. Open as many browsers as you want on that url to see the gang in action

Also available at https://gang.antix.co.uk

2.0.0-beta.21

3 years ago

2.0.0-beta.20

3 years ago

2.0.0-beta.19

3 years ago

2.0.0-beta.18

3 years ago

2.0.0-beta.17

3 years ago

2.0.0-beta.16

4 years ago

2.0.0-beta.15

4 years ago

2.0.0-beta.14

4 years ago

2.0.0-beta.13

5 years ago

2.0.0-beta.11

5 years ago

2.0.0-beta.12

5 years ago

2.0.0-beta.10

5 years ago

2.0.0-beta.9

5 years ago

2.0.0-beta.8

5 years ago

2.0.0-beta.7

5 years ago

2.0.0-beta.6

5 years ago

2.0.0-beta.5

5 years ago

2.0.0-beta.4

5 years ago

2.0.0-beta.3

5 years ago

2.0.0-beta.2

5 years ago

2.0.0-beta.1

5 years ago