Empyrion API Message Broker

Discussion in 'Empyrion API' started by cmwhee, Dec 5, 2017.

  1. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    #1
    Last edited: Mar 26, 2018
  2. Mortlath

    Mortlath Commander

    Joined:
    Jul 26, 2017
    Messages:
    49
    Likes Received:
    26
    I have something similar I've using in my own wrapper of the Empyrion APIs: https://github.com/MichaelGoulding/...Mods/blob/master/SharedCode/RequestTracker.cs

    It returns a Task instead so that you can write code inline when using an async method.
     
    #2
  3. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    Yeah, I'm not using the tasks API because I've never liked how they implemented it. It's kind of a holdover from a time where no one had figured out "best practices for async handling" yet.

    My method allows you to write code inline as well, I'm not sure what you mean.
     
    #3
  4. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    You know what, I take it back, there's some good stuff in that API that I didn't appreciate before. THe next version (in development now) will return task objects as well.

    Thanks for the thought!
     
    #4
  5. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    #5
  6. Mortlath

    Mortlath Commander

    Joined:
    Jul 26, 2017
    Messages:
    49
    Likes Received:
    26
    I'm using the TCP connection shown in the sample project you have hosted on your GitHub account. I've sent a pull request your way with some changes I've made to it.

    Feel free to contact me on Discord on the Empyrion API mod Community (https://discord.gg/pEpawGB) for more details.
     
    #6

Share This Page