Server Messages

Comments

3 comments

  • Avatar
    Anton Venema

    Are you thinking of something like a web service (REST) style API?

    0
    Comment actions Permalink
  • Avatar
    Sean Gifford

    Sure.  For the scenarios I'm thinking of, another WebHook might suffice, but that might be too simplistic for general use?

    This would let me get called with a request that includes the original message (and other data fully identifying the originating client).  It is up to me to parse the message and perhaps do something. I can optionally include a message in my response that would be sent back to the originating client, which would receive it on a specific event.

    This would not be used for messages destined for other clients as the existing API already handles that.

    0
    Comment actions Permalink
  • Avatar
    Anton Venema

    Makes sense. We added message hooks as a new feature in the gateway that let you hook into and process the messages flowing through the gateway, but there isn't a Send option that doesn't target a channel/user/device/client. This would be a good add - a new client Send option that doesn't target anything except the server, with the expectation that it would be used in conjunction with a server-side message hook.

    0
    Comment actions Permalink

Please sign in to leave a comment.