benawad / fullstack-graphql-airbnb-clone

A Fullstack GraphQL Airbnb Clone with React and React Native
MIT License
1.68k stars 445 forks source link

WebSocket is closed before the connection is established. #34

Closed goodza closed 4 years ago

goodza commented 4 years ago

After yarn start web client (localhost:3000) has the error in console:

WebSocket connection to 'ws://localhost:4000/' failed: WebSocket is closed before the connection is established.

Though the server is running.

benawad commented 4 years ago

is this when you cloned my code?

goodza commented 4 years ago

Yes. Redis, Postgres, and Server are running but web client throws error.

goodza commented 4 years ago

The problem appears with ws-handshake when there are 2 or more unclosed tabs of localhost:3000