"wss://xenotest1.atumplatform.io/streams/xeno/stream/eth-xem?pubkey=FfFXnhCu6SadmVzaap1gxYafYD1Q7tXotuRmENonQLG1", port: 80)
switch client.connect(timeout: 1) {
case .success:
switch client.send(string: "GET / HTTP/1.0\n\n" ) {
case .success:
guard let data = client.read(1024*10) else { return }
if let response = String(bytes: data, encoding: .utf8) {
print(response)
}
case .failure(let error):
print(error)
}
case .failure(let error):
print(error)
}
может порт не тот?
Обсуждают сегодня