I'm trying to connect to the following service: http://pusher.com/docs/pusher_protocol#websocket-connection , looks like they are using a standard WebSocket protocol.
StreamingSocket::connect()
returns false.
looks like
getaddrinfo
is the culprit.
Without going in too deep, is connecting to such a URL possible?
The url is: ws://ws.pusherapp.com. I'm not sure I understand what I can do with the juce::URL class. I think juce::StreamSocket is meant for exactly this is it not?
So this URL indicates that a special protocol is running like ftp://, http:// git:// …
The juce::Url class is a specific class for HTTP protocol. When I’am not wrong than inside this class is a HTTP PUT and GET request. So you send an request to server and receive the response.
When you can get the raw IP address (with DNS calls) you can connect with StreamSocket to this URL. After this you must implement the pusherapp protocol for communication. But for this details I have no knowledge.