My socket on the server is running on port 8081. On my client-side, I have:
<script src="https://www.server.co.uk:8081/socket.io/socket.io.js"></script>
and later on:
var iosocket = io()
However, when I load my page on port 80 (with the client-side code), I get an error saying:
Loading failed for the <script> with source: ..
and then
ReferenceError: io is not defined.
What is the issue here?