yoo2001818 / react-against-humanity

Multiplayer game of Cards Against Humanity using React
MIT License
4 stars 1 forks source link

Store connection info in each message #10

Closed yoo2001818 closed 8 years ago

yoo2001818 commented 8 years ago

We should store connection info in each chat message, since chat is a log, and log shouldn't be changed after ...being logged.

However, implementing this can be a hard job since we don't know anything about the connection in chat reducer.

We have to inject connection information in the action, which doesn't feel clean. Still, this is the best way to do it. (The alternative way is replacing root reducer, however this is much crazier than this)

Implementing this shouldn't be a hard job though.