lambda-local
lambda-local copied to clipboard
Allow object in clientContext
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.