I'm struggling to figure out how to integrate Socket.io with MEAN stack. Although I am able to run it in the latest version without any errors using the following code:
var server = app.listen(config.port, config.hostname);
io = io.listen(server);
However, I cannot access io or socket within Angular due to scope issues. As a beginner in this field, I might be missing something obvious, but I would greatly appreciate any guidance on how to resolve this issue.