I noticed two issues with the server code example:
The documentation for the server implementation includes the line server.ws
But in documentation, we don't console.log the port like we do HTTP and UTP:
server.on('listening', function () {
// fired when all requested servers are listening
console.log('listening on http port:' + server.http.address().port)
console.log('listening on udp port:' + server.udp.address().port)
})
The three variables being used on the server.listen() function are not defined.
I noticed two issues with the server code example:
The documentation for the server implementation includes the line
server.ws
But in documentation, we don't console.log the port like we do HTTP and UTP:
The three variables being used on the
server.listen()
function are not defined.Can I add these to the doc?