XMLSocket request not working from Postman

13 Views Asked by At

I am able to make a request from actionScript using XMLSocket but not able to make a connection from postman.

Action Script Code:

var main_socket = new XMLSocket();
main_socket.onConnect = function(success)
{
   if(success)
   {
      main_socket.send("<data avatar_id=\"" + avatar_data.id + "\" password=\"" + user_pass + "\" />");
   }
   else
   {
      _root.FailReport("Top Socket connection is failed.\nCheck your Internet connection.");
   }
};
function ConnectToTopSocket()
{
   main_socket.connect(_root.server_ip,_root.top_socket_id);
}

Postman: Postman Screenshot

I have tried making normal get/post request, adding ws:// and wss:// at the start of address but nothing seems to work

0

There are 0 best solutions below