Closed zorchenhimer closed 5 years ago
In https://github.com/zorchenhimer/MovieNight/issues/4, I might implement part of this. Having the connection join when the page loads simplifies things and might solve a problem with goroutine deadlocks I was having. What I will not do in https://github.com/zorchenhimer/MovieNight/issues/4 is changing the UI for inputting their name.
After looking at the chatroom code, I'll leave that area alone, since the changes are much larger. The websocket will open on page join instead of when the user presses join.
Load and display chat before the user enters a username. Instead of showing the message box at the bottom, show the "Enter Username" input.
Wait until after #4 is finished to implement this.