Jump to content
The simFlight Network Forums

harrit

new Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by harrit

  1. Hi in how far is it working now days 24 withe connection in javascript ? i have only this and never work befor white WebSocket sorry about my Englice let URI = "ws://127.0.0.1:2048/fsuipc/"; webSocket = new WebSocket(URI); console.log(webSocket.send('001')); console.log(webSocket.close(1)); webSocket.onopen = function(event) { //"ok " + console.log(event); }; //onmessage webSocket.onmessage = function(event) { //"ok " + console.log(event); }; //onerror webSocket.onerror = function(event) { //"error : " + console.log(event); }; //onclose webSocket.onclose = function(event) { //"onclose : " + var reasons = (event.reason) ? event.reason : "is closed by server!" console.log(event.type + " " + reasons); };
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.