Skip to content

EmmanuelLefevre/Yam4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

283 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket IO Example

Supports Expo iOS Supports Expo Android Supports Expo Web

This example shows how to connect and interact with socket-io backends.

🚀 How to use

Running the app

  • Run yarn or npm install
  • Open App.js and change the socketEndpoint at the top of the file to point to your endpoint.
  • Open app with yarn start or npm run start to try it out.

Running the server

  • cd into the backend directory and run yarn or npm install, then run yarn start or npm run start
  • Install ngrok and run ngrok http 3000 and copy the https url that looks something like this https://f7333e87.ngrok.io.

📝 Notes

React Native provides a socket-io compatible WebSocket implementation, some people get tripped up on the https requirement so this example helps to clarify how you can get it running.

SERVEURS

Frontend

npx expo start

Backend

yarn start

About

🎲 Mobile game app mixing Yahtzee and Connect Four

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors