Skip to content

Simplify state across all socket listeners #1

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 });
    

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions