burmudar/gomodoro

Use a FSM on the client side for messages received from server

Opened this issue · 0 comments

We currently have a bunch of message types being sent and reacted upon. All of the types of processed using a switch statement, which is getting long and is a maintenance nightmare waiting to happen.

Using a FSM we can accurately determine the series of states a message will go through and allow us to make more complex flows easily.