https://github.com/edocbuhtig/socket.io-ionic-client-nodejs-server
Socket.io Nodejs integration for Ionic Framework app client
https://github.com/edocbuhtig/socket.io-ionic-client-nodejs-server
socket-io
Last synced: 11 months ago
JSON representation
Socket.io Nodejs integration for Ionic Framework app client
- Host: GitHub
- URL: https://github.com/edocbuhtig/socket.io-ionic-client-nodejs-server
- Owner: edocbuhtig
- License: mit
- Created: 2020-01-26T13:59:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-10T21:46:14.000Z (over 2 years ago)
- Last Synced: 2025-02-05T18:57:44.800Z (over 1 year ago)
- Topics: socket-io
- Language: HTML
- Homepage:
- Size: 272 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Socket.io nodejs server setup
cloce the repo browser to **nodeserver** folder
To install dependencies
```npm install```
To serve the app run
```npm start```
### Socket.io ionic client setup
Just use the folder **ionicclient** for your code reference, create a new Ionic v3 project,
```ionic start ProjectName blank --type=ionic-angular```
Install socket.io client dependency
```npm install socket.io-client --save```
Only one import is needed, in your component ts file as below,
```import * as io from 'socket.io-client';```
To test the app on the same wifi/network use,
```ionic serve --external```
Grab the url with ip address, and point your external device browser to this address.
You can use the latest Ionic v4/5 for this and it works the same.
## Screenshot

## Ionic Info used for this repo
```
Ionic:
Ionic CLI : 5.4.15
Ionic Framework : ionic-angular 3.9.9
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : none
Cordova Plugins : no whitelisted plugins (0 plugins total)
System:
NodeJS : v12.14.1
npm : 6.13.4
OS : macOS Catalina
```