title: Can my ExpressJS website and socket.io port use the same port?
body: <p>I've been coding ExpressJS websites which use socket.io for realtime communication, and I use the same port always</p>
  
  <pre><code>const request = require('request')
  const express = require('express')
  const app = express()
  const server = require('http').Server(app)
  const io = require('socket.io')(server)
      server.listen(3000, () =&gt; {
    console.log(`Server started: http://localhost:3000`)
  })
  </code></pre>
  
  <p>Is it safe / a healthy practice to use the same port for both the websocket and the express server. Will it cause any problems?</p>