【文件属性】:
文件名称:react-native-swift-socketio:用于socket.io-client-swift的React本机包装
文件大小:46KB
文件格式:ZIP
更新时间:2021-03-27 06:22:26
Swift
:police_car_light: 该库不再维护!
Socket.io Swift库的React Native包装器
包装好的“ Socket.IO-客户端-Swift”可以在。
例子
我还向/ examples添加了一个超级简单的示例应用程序,将其复制并粘贴到index.ios.js中。
/**
* 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 ( ) ;
// An e
【文件预览】:
react-native-swift-socketio-master
----.gitignore(18B)
----RNSwiftSocketIO()
--------SocketBridge.m(579B)
--------SocketIOClient()
--------Socket.swift(2KB)
--------SocketBridge.h(316B)
----README.md(4KB)
----RNSwiftSocketIO.xcworkspace()
--------contents.xcworkspacedata(2KB)
--------xcshareddata()
----examples()
--------index.ios.js(2KB)
----package.json(717B)
----index.js(2KB)