Was told this was better suited for this thread than bug reporting. It's not an access problem, not along the lines of the rest posted in this thread anyway, but for completeness' sake:
Anyway. I've been trying to set up my own server for some experiments, and so far I haven't been able to connect to it. I get the "You have been disconnected - possibly because the server was restarted." message right after it successfully contacts the login server. My firewall doesn't seem to be the problem, I'm reasonably certain I followed both the readme and Heroku's instructions correctly, and after a bit of poking around in the source and dev console I think I've identified the issue:
It's using the WebSockets protocol, which I believe Heroku doesn't support. In config.js, however, I did explicitly set the protocol to "io". I can access the main (Smogon) server just fine, and I'm assuming that's running with WebSockets since it's the recommended protocol. Looking further at the source HTML, it looks like the Socket.IO script is commented out—would that, or something similar, be the problem? That it's trying to use Socket.IO, is unable to, and then defaults back to WebSockets even though Heroku can't use that?
I'm still learning about working with Node and realize it's entirely likely that I screwed up somewhere along the line, but I just want to be sure. Thanks in advance! (And if there's a better way/place to ask for help with this sort of issue, just let me know.)
- Windows 7
- Firefox 14
- Also tried the latest Chrome and Opera
- July 18th, maybe? I think that was around when I started trying this
- None yet, not that sort of issue
- Problem:
Anyway. I've been trying to set up my own server for some experiments, and so far I haven't been able to connect to it. I get the "You have been disconnected - possibly because the server was restarted." message right after it successfully contacts the login server. My firewall doesn't seem to be the problem, I'm reasonably certain I followed both the readme and Heroku's instructions correctly, and after a bit of poking around in the source and dev console I think I've identified the issue:
Code:
<script>
var server = '****.herokuapp.com'; var serverport = 8000;
[B]var serverprotocol = 'ws';[/B]
var urlPrefix = '~~****.herokuapp.com/';
var down = false;
//if (!urlPrefix) down = true;
var oldie = false;
</script>
I'm still learning about working with Node and realize it's entirely likely that I screwed up somewhere along the line, but I just want to be sure. Thanks in advance! (And if there's a better way/place to ask for help with this sort of issue, just let me know.)