Jump to content
The simFlight Network Forums

Manuel Lence

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Manuel Lence

  1. Hi Paul, yes that would be very helpful. Thanks again for your time on this project! Greetings, Manu.
  2. Hi Paul, sorry for the delay in responding. My question is if there is any possibility of automatic updates. In case of being very complicated if you could add a kind of API in the web page with which you could verify the current version of the socket with that of the client, and in case there is a new version it is notified that it exists and redirected to the website to download it. Thanks for your time.
  3. Hello Paul. My name is Manuel, and I am part of the Staff of a virtual airline and we are building our own ACARS with your websocket. We saw that every so often you update it and that is very good. What I wanted to ask you, if you don't mind, some kind of API to know when there are socket updates. Is there any chance of that? Thank you very much and great job!
  4. Hello Paul, the problem was solved. By removing the switch and validated with an IF, it is solved. Thank you very much and I hope you continue giving support to this server is a good job. Manuel.
  5. Hi Paul, thanks for answering. The ws.close () is only executed with the finish button. I'm sure of that because if I send a single command it still works. I show you the part of the code: ws.onmessage = function (msg) { var response = JSON.parse(msg.data); if (response.success) { if(response.name == 'myOffsets') { showOffsetValues(response); } else if(response.name == 'myPayload') { showPayloadValues(response); } } }; And this is where I declare the offset I need and send to the websocket: this.iniciar = function () { var data = { command: 'offsets.declare', name: 'myOffsets', offsets: [{...CODE...} ] } ws.send(JSON.stringify(data)); var request = { command: 'offsets.read', name: 'myOffsets', interval: 1000 } ws.send(JSON.stringify(request)); var PayloadSend = { command: 'payload.read', name: 'myPayload', weightUnit: 'Kg', volumeUnit: 'l' } ws.send(JSON.stringify(PayloadSend)); } Thanks for your time.
  6. Hi, my name is Manuel. First of all I want to congratulate you for the incredible work you are doing. I am doing an ACARS for a virtual airline. Everything in JS. My question is the following: Is there a way to send two commands at the same time? I explain. I am already using the command: offset.declare and as explained by Paul's website, I send all the offset I need to track. But I would like to also be able to send the command payload.read since it gives all the information ready to read without the need to do calculations and conversions. I already tried sending the two commands separately and joining them on the switch as explained in the documentation on the web. The problem is that when reading the payload it disconnects from the websocket and I need to keep tracking the rest of the parameters. I hope you can help me with this if possible. Thank you very much again and sorry if my English is bad I am using google translator.
×
×
  • 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.