Happy Holidays to all!
Environment:
Amazon AWS server running Ratchet/PHP websocket server with port 8080 open on the server.
Home internet with a Galaxy Tab and a windows pc running the b4a. I am using wifi to bridge to the tablet.
Problem:
I created a simple b4a app with a starter service and the provided websocket class to open a connection to the server and sit waiting for communications. The out going connection gets made, as I can see the connection notice on the server, but the reply back to the app doesn't fire the connected event on the app.
I am temped to post my code here and have you tell me whats wrong, but I don't learn that way. What I am asking for is some trouble shooting techniques.
I am thinking that this is a firewall/router issue at my end here at home. I have forwarded ports I have used DMZ I have done a bunch of things. just trying to figure out some testing ideas to diagnose the issue.
I am struggling as well with one piece of code. I am trying to understand the callback and event name process.
thanks
Brad
Environment:
Amazon AWS server running Ratchet/PHP websocket server with port 8080 open on the server.
Home internet with a Galaxy Tab and a windows pc running the b4a. I am using wifi to bridge to the tablet.
Problem:
I created a simple b4a app with a starter service and the provided websocket class to open a connection to the server and sit waiting for communications. The out going connection gets made, as I can see the connection notice on the server, but the reply back to the app doesn't fire the connected event on the app.
I am temped to post my code here and have you tell me whats wrong, but I don't learn that way. What I am asking for is some trouble shooting techniques.
I am thinking that this is a firewall/router issue at my end here at home. I have forwarded ports I have used DMZ I have done a bunch of things. just trying to figure out some testing ideas to diagnose the issue.
I am struggling as well with one piece of code. I am trying to understand the callback and event name process.
B4X:
'Starter Service
Sub Connect 'send init connect to server
wsh.Initialize(Me, "wsh")
wsh.Connect(serverlink)
End Sub
'Websocket Class
Public Sub Initialize (vCallback As Object, vEventName As String)
CallBack = vCallback
EventName = vEventName
ws.Initialize("ws")
End Sub
thanks
Brad