I am not very much experienced in js and i am not able to understand why the script tag path doesnt work for me whereas i found everywhere that script but for me it doesnt work i am also new to these things not much experienced so if you found any error from my side please help me out.
desc:- i am working on a server client based project where i need the socket.io library and i have included all the things necessary for it to work
my project works when i try this
<script defer src="http://localhost:8000/socket.io/socket.io.js "></script>
but it doesnt work when i do like this (i saw this almost everywhere in the internet)
<script defer src="/socket.io/socket.io.js "></script>
++help i also want it to work(deploy) on heroku so please help so that it should not have default ports
any help will be highly appreciated