Skip to content

Simplify state across all socket listeners #1

@MoonTahoe

Description

@MoonTahoe

Simplify state across all socket listeners

  • Simplify Code

                    this.socket.on('incomming', this.setState);
                    this.socket.on('incomming', this.setState);
                    this.socket.on('incomming', this.setState);
                    this.socket.on('incomming', this.setState);
    
  • State Updates Controlled from Server

                    this.Socket.emit('outgoing', { speaker: state.speaker });
    

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions