I\'m not sure if is an issue or maybe there is a change between version 2.x and 3.x. When require the socket.io package in the first version I can use a function listen and