Files
github-actions[bot]andamandeepmittal 0073f46826 Upgraded Expo SDK to expo@latest (#701)
This PR was automatically created by the [upgrade
workflow](./.github/workflows/upgrade.yml).

> ⚠️ Review the [job
logs](https://github.com/expo/examples/actions/runs/28587793003) before
merging

Co-authored-by: amandeepmittal <[email protected]>
2026-07-02 18:05:43 +05:30
..
2021-12-21 19:02:50 -07:00

Socket IO Example

Supports Expo iOS Supports Expo Android Supports Expo Web

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

Launch your own

Launch with Expo

🚀 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.