Websockify accepts incoming (also called upstream connections) connections on whatever port you assign it to listen on, and forwards them to whatever port you assign. The VNC server (for example tigervnc) is listening on a port, usually 5091 as a default. So websockify would typically listen on the VNC server host to port 6080 and forward to 5091 on the same host.
8080 is an alternative for port 80 (the default http port) It is unusual to use 8080 for something other than http.
FYI, details about the process of listening:
When a process listens, it typically listens on "all the addresses" on the host. So this means that it would accept connections on the Internet (public) address for that port (e.g. something like
3.23.144.17:5091), or on the private address for that host (e.g.
10.0.0.25:5091), or the localhost address (e.g.
127.0.0.1:5091). If you have a home machine (a host), it would have addresses on your main interface (either a Wi-Fi or ethernet interface) for accessing the Internet and your local devices at home.Your host would have a public address from your Internet service provider (ISP), and would also have a private address within your house (e.g. 10.0.0.25), and would have the address 127.0.0.1 which is the localhost address.
The same is true for the host running the VNC server. So the vnc server will listen on all three addresses for port 5091. If you assign the VNC server a different port, such as 6080, it will accept connections from your noVNC client on port 6080.