React Native Wrapper for Socket.IO Swift Client react-native-swift-socketio
:police_car_light: This library is no longer maintained! The React Native wrapper for the Socket.IO Swift library provides a packaged version of 'Socket.IO-Client-Swift'. An example can be found in /examples
. I've also added a super simple sample app to /examples
, which can be copied and pasted into index.ios.js
:
```javascript
/**
* Pass in an optional config obj, this can include most of the
* standard props supported by the swift library
*/
var socketConfig = { path : '/socket' } ;
var socket = new SocketIO('localhost:3000', socketConfig);
// Connect!
socket.connect();
// Add more socket events as needed here
```
**Note:** Ensure that the Swift library setup is completed before running the app.
45.51KB
文件大小:
评论区