Get working console websocket implementation and fix race condition

This commit is contained in:
Dane Everitt
2019-04-20 17:38:12 -07:00
parent 49ca2e2404
commit bed30d9229
4 changed files with 99 additions and 25 deletions

View File

@@ -228,7 +228,7 @@ func (d *DockerEnvironment) FollowConsoleOutput() error {
s := bufio.NewScanner(r)
for s.Scan() {
fmt.Println(s.Text())
d.Server.Emit(ConsoleOutputEvent, s.Text())
}
if err := s.Err(); err != nil {