Skip to content
Permalink
Browse files Browse the repository at this point in the history
Define req.path for socket requests.
  • Loading branch information
mikermcneil committed Sep 23, 2018
1 parent 04e71df commit ff02114
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/receive-incoming-sails-io-msg.js
Expand Up @@ -3,6 +3,7 @@
*/

var util = require('util');
var url = require('url');
var _ = require('@sailshq/lodash');
var semver = require('semver');
var parseSdkMetadata = require('./parse-sdk-metadata');
Expand Down Expand Up @@ -105,6 +106,8 @@ module.exports = function ToReceiveIncomingSailsIOMsg(app) {

url : options.incomingSailsIOMsg.url,

path : url.parse(options.incomingSailsIOMsg.url).pathname,

method : options.eventName,

// Attached data becomes simulated HTTP body (`req.body`)
Expand Down

1 comment on commit ff02114

@mikermcneil
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ali!

Please sign in to comment.