seperating react files, starting to fix top menu.
This commit is contained in:
8
main.go
8
main.go
@@ -395,6 +395,14 @@ func main() {
|
||||
|
||||
startTorrent(clientTorrent, torrentLocalStorage, db, Config.DataDir, "magnet", "") //starting the torrent and creating local DB entry
|
||||
|
||||
} else if string(msg) == "torrentFileListRequest" { //client requested a filelist update
|
||||
fmt.Println("client Requested Filelist update")
|
||||
err = conn.WriteMessage(msgType, []byte("fileListUpdate"))
|
||||
if err != nil {
|
||||
fmt.Println("Websocket Write err", err)
|
||||
return
|
||||
}
|
||||
|
||||
} else {
|
||||
conn.Close()
|
||||
fmt.Println(string(msg))
|
||||
|
Reference in New Issue
Block a user