Skip to content

Fix documentation for server implementation #403

@Bruce-Hopkins

Description

@Bruce-Hopkins

I noticed two issues with the server code example:

  1. 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)
})
  1. The three variables being used on the server.listen() function are not defined.
server.listen(port, hostname, onlistening)

Can I add these to the doc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions