You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 41m 55s logged

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

0

Comments 0

No comments yet. Be the first!