Problem with handling pubsub messages

  1. please don’t necro and hijack someone elses post
  2. options is missing a type: ‘post’ you appear to be making a get request instead of a post request.
  3. body is wrong:

Should be:

 JSON.stringify({
            message: JSON.stringify({ "foo":"bar" }),
            content_type: 'application/json',
            targets: ['broadcast']
    })