Remove websockets, readme, better UI

This commit is contained in:
Philipp Heckel 2021-10-23 15:22:17 -04:00
parent 630ecd351f
commit a66bd6dad7
4 changed files with 133 additions and 100 deletions

View file

@ -12,11 +12,11 @@ import (
type topic struct {
id string
subscribers map[int]subscriber
messages int
messages int
last time.Time
ctx context.Context
cancel context.CancelFunc
mu sync.Mutex
ctx context.Context
cancel context.CancelFunc
mu sync.Mutex
}
type subscriber func(msg *message) error