meshblu-server-websocket
Version:
Websocket Protocol Adapter for Meshblu
21 lines (15 loc) • 627 B
text/coffeescript
_ = require 'lodash'
http = require 'http'
class GetAuthorizedSubscriptionTypesHandler
constructor: ({,,,}) ->
do: (data, callback) =>
request =
metadata:
jobType: 'GetAuthorizedSubscriptionTypes'
toUuid: data.uuid
auth:
data: data
.do , , request, (error, response) =>
return callback error, 'get-authorized-subscription-types' if error?
callback null, 'get-authorized-subscription-types', JSON.parse(response.rawData)
module.exports = GetAuthorizedSubscriptionTypesHandler