Add config file. Turn on/off ipfs

This commit is contained in:
Gabe Kangas
2020-06-01 16:53:31 -07:00
parent 9bad847be4
commit ca622c85c7
13 changed files with 166 additions and 51 deletions

View File

@@ -76,9 +76,6 @@ func (s *Server) sendAll(msg *Message) {
// Listen and serve.
// It serves client connection and broadcast request.
func (s *Server) Listen() {
log.Println("Listening server...")
// websocket handler
onConnected := func(ws *websocket.Conn) {
defer func() {
@@ -93,7 +90,6 @@ func (s *Server) Listen() {
client.Listen()
}
http.Handle(s.pattern, websocket.Handler(onConnected))
log.Println("Created handler")
for {
select {