ws = WebSocketClient.new()
ws.connect("connection_established", self, "_connection_established")
ws.connect("connection_closed", self, "_connection_closed")
ws.connect("connection_error", self, "_connection_error")
var url = "ws://localhost:8080"
print("Connecting to " + url)
print("Connection Established With Protocol: ", protocol)
if ws.get_connection_status() == ws.CONNECTION_CONNECTING || ws.get_connection_status() == ws.CONNECTION_CONNECTED:
it is okay when i connect to local node server.
but when i deploy on heroku, and turn the URL var into "https://gdwebsocketdemo.herokuapp.com/"
it come out with an error:
The argument 'delta' is never used in the function 'process'
getaddrinfo failed! Cannot resolve hostname
Condition '!addr.isinvalid()' is true. returned: ERRINVALIDPARAMETER
since i don't have a fully understanding on websocketclient usage. what might be the issue. thank you.
btw. it's an examples of gd-com-utils provided by Salsa2K.