Hey,
i’m new to pimatic and since i study it i want to tinker around a bit with the possibilities.
For my network i want to write an application in swift which can control different things.
To get that working i’m using the socket.io api part.
It’s only a bit code:
let socket = SocketIOClient(socketURL: NSURL(string: "http://unifi.fritz.box:80/?username" + user! + "&password=" + pass!)!, options: [ .Reconnects(true), .ReconnectWait(1000), .ReconnectAttempts(3000), .ForceNew(true)])
socket.on("connect") {data, ack in
print("socket connected")
}
So i was thinking i should get a socket connected but that don’t happen.
Thinking about i misunderstood something about the protocol
Maybe someone can help me
regards
Moritz
edit:
pls move to development seems like it switched the topic somehow