Question: I have an array:

```
     let numbers = [8,4,2,1,7,5,3,0];

```

I want to send this array to the client using socket.emit.
But when i send this data using:

```
   var numbers1 = JSON.stringify(numbers);
  socket.emit('new',{num:numbers1});

```

And listen it on the client side using:

```
 socket.on('new',(data)=>{
    var aa = data.num ;
   console.log(aa);
  });

```

It says undefined on the DevTools for the console of aa. 

Edit
====

I had written an incomplete code.
 The complete client side code is:

```
   socket.on('new',(data)=>{
var numbers = JSON.parse(data.num); //this will retrieve your array.
console.log(numbers);

```

});

It says as the error 

```
  VM42:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0

```

which means the data which is trying to parse is undefined.

Answer: 
OK so I found this, which says it's not possible at the moment:

<https://github.com/aws/aws-lambda-dotnet/issues/246>

Am moving to NodeJs and the Serverless package to do this for now:

<https://www.npmjs.com/package/serverless>

Will update this if / when things change for dotnet core
processId it should be set to 1, because Docker assigns entry point executable PID of 1. It is in launch.json of VS Code.