I refactored some more of the server
It now checks the servers current state and redirects a packet to be handled in a function meant for that state only. no checking the current state in every packet purpose if statement
I also removed the address variable from the client class and replaced it with the entire websocket, which contains it’s address, so it’s easier to send messages to all clients now.
I also made it send all the clients onto the next screen and generate 2 prompts for each to draw, which are also sent over
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.