lambda-local icon indicating copy to clipboard operation
lambda-local copied to clipboard

Allow object in clientContext

Open boblund opened this issue 2 years ago • 0 comments

I'm using lambda-local for a local API gateway websocket server. I want to use clientContext to pass a local version of AWS.ApiGatewayManagementApi.postToConnection() to the lambda integration. I can do this with the following change:

function _executeSync(opts) {
  ...
  clientContext = opts.clientContext; //JSON.parse(opts.clientContext);

i.e. don't parse the clientContext option.

Could this be a permanent change? I don't see a downside.

boblund avatar Aug 12 '22 13:08 boblund