Skip to content

jeffstedt/react-with-socket-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React with socket.io counter example

Install

  yarn install

Run server and client

  yarn dev

Or run them as separate processes

  yarn server
  yarn client

Ideas for future iterations

  • Server side validation
  • Immutable server states
    • Instead persist data from some db
  • Contract between server and client
    • Shared message and event types
  • Client error handling
    • Network 4xx and 5xx
    • Offline / no connection / bad connection
  • Server error handling
    • Handle invalid incoming emit values

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published