You are viewing a single comment's thread. Return to all comments →
ws.write(res.join(' ') + '\n');
TypeError: Cannot read property 'join' of undefined
at main (solution.js:41:18)
at ReadStream.<anonymous> (solution.js:20:5)
at emitNone (events.js:111:20)
at ReadStream.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
I am getting the same error. Did you find out how to get around it?
I had this when I forgot to return the reversed array. Would need to see your code to help though.