in my project I wanted to attach socket.io server to already existing port, in my case it\'s 1880 where Node-RED is serving its files. That\'s why I used:
con