Any way to make the gateway listen the same port as the application?
See original GitHub issueHi there!
Is there any way to make an equivalent to this classic configuration in nest?
var app = express()
, server = require('http').createServer(app)
, io = io.listen(server);
server.listen(3000);
My application has only one gateway and I would like it to use the same port as the main express application.
Thanks a lot! Alex
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Can two applications listen to the same port? | Pico
The short answer is “no, not on the same host." The longer answer is that this is by design, the basic rationale being...
Read more >Azure Application Gateway listener configuration
Choose the frontend port. Select an existing port or create a new one. Choose any value from the allowed range of ports. You...
Read more >Can two applications listen to the same port? - Stack Overflow
For TCP, no. You can only have one application listening on the same port at one time. Now if you had 2 network...
Read more >How to Configure a Single Secure Gateway/ Web Interface ...
To redirect listening local port 80 / HTTP to port 443 / HTTPS, you must have a redirection page listening on port 80....
Read more >Setting up HTTPS for myFileGateway - IBM
To run myFileGateway inside your secure network, no configuration is required. ... No two HTTP Server adapter configurations can listen on the same...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @alejandroSuch, It’s available from v4.2.0. (just left
@WebSocketGateway()
empty)For now I just wrote my own adapter: (I also use ws rather than socket.io)
And then use my own HTTP server: