Open DroidUnknown opened 6 years ago
@DroidUnknown you may need to provide more detail about your environment... at first glance it looks like a problem with your client, not with netty-socketio server. However: How is your netty-socketio configured? is it accepting HTTP requests? How is your Spring MVC framework configured? is it accepting HTTP requests? What happens if you do: telnet localhost 9092 ? My guess is that your Spring/netty-socketio server(s) are not listening to HTTP so you client tries then with HTTPS
If i use static html page then it connects with socket server perfectly and communicate properly. If I try to use socket client from inside my app then even though I give it HTTP url the network tab in developer console shows HTTPS being hit.
So it seems that the issue would be on client side, not related to netty-socketio server at all. Would it be possible that you compare the "static html page" with what you refer as "inside my app" to see what the differences for socket client could be?
So I am using Spring MVC framework and socket server is child process of Spring MVC. Now from my webapp if I try to do
var socket = io.connect('http://localhost:9092');
it doesn't send the request at http://localhost:9092/socket.io/...., but instead it is sent to https://localhost:9092/socket.io/... which is then blocked by AuthorizationHandler.I am unable to figure out why this socket.io is sending request at https while i am trying to do http?
P.S. It is my requirement to use HTTP for netty-sockets and not HTTPS.