I know about this question: Send message to specific client with socket.io and node.js
However I tried any of the answers there and I receive the next error:
/Users/razbuchnik/node/routes/sockets.js:13
io.to["1ZAJEIGhcMP2k6zqAAAA"].emit("socketFromServer", info);
^
TypeError: Cannot read property 'emit' of undefined
at Socket.<anonymous> (/Users/razbuchnik/node/routes/sockets.js:13:37)
at Socket.emit (events.js:159:13)
at /Users/razbuchnik/node/node_modules/socket.io/lib/socket.js:513:12
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
[nodemon] app crashed - waiting for file changes before starting...