文件名称:适用于iOS / OS X的Socket.IO客户端。-Swift开发
文件大小:316KB
文件格式:ZIP
更新时间:2024-06-15 20:54:54
Swift Network
Socket.IO-Client-Swift用于iOS / OS X的Socket.IO-client。示例import SocketIO let manager = SocketManager(socketURL:URL(string:“ http:// localhost:8080”)!,配置:[.log( true),.compress])let socket = manager.de Socket.IO-Client-Swift适用于iOS / OS X的Socket.IO-client。示例import SocketIO let manager = SocketManager(socketURL:URL(string:“ http:// localhost:8080“)!,配置:[.log(true),.compress])让socket = manager.defaultSocket socket.on(clientEvent:.connect){data,ack in print(” socket connected“)}套接字。 on(“ currentAmount”)