Hello. Testing this our for the first time. Swift 3 / Xcode 8.1. I'm trying to connect to the wikimedia recentchanges socket. Finally figured out the correct .path() and then I got this fatal error.
let socket = SocketIOClient(socketURL: URL(string: "wc://stream.wikimedia.org/")!,
config: [.path("/socket.io/1/"), .log(true), .forcePolling(true)])
socket.on("connect")
{
data, ack in
print("socket connected")
}
socket.on("currentAmount")
{
data, ack in
print ("Got data: \(data)")
}
socket.connect()
Fatal error occurred on the first line of this method.
Hello. Testing this our for the first time. Swift 3 / Xcode 8.1. I'm trying to connect to the wikimedia recentchanges socket. Finally figured out the correct .path() and then I got this fatal error.
Fatal error occurred on the first line of this method.