文件名称:基于Venice的WebSocket客户端-Swift开发
文件大小:6KB
文件格式:ZIP
更新时间:2024-06-16 01:03:03
Swift Network
WebSocketClient安装导入PackageDescription let package = Package(依赖关系:[.Package(url:“ https://github.com/Zewo/WebSocketClient.git”,majorVersion:0,minor:14),])WebSocketClient安装导入PackageDescription let package = Package(依赖项:[.Package(url:“ https://github.com/Zewo/WebSocketClient.git”,majorVersion:0,minor:14),])示例import WebSocketClient let name =“ Dan” let client =尝试WebSocketClient(URL:“ ws:// localhost:8080”){打印中的ws(“ Connected!”))ws.onText {打印中的文本(“接收的文本:\(文本)”)尝试ws.send(text) } ws.onClose {代码,原因
【文件预览】:
WebSocketClient-master
----.gitignore(41B)
----Package.swift(292B)
----README.md(2KB)
----Sources()
--------WebSocketClient()
----LICENSE(1KB)
----.swift-version(4B)
----Tests()
--------LinuxMain.swift(109B)
--------WebSocketClientTests()
----.travis.yml(328B)