gofterdom Posted yesterday at 10:56 AM Posted yesterday at 10:56 AM Hello, I've just set up a Tommy account for a small scale 2D MMORPG using html, js, node.js websockets. username : gofterom domain : citadel server : tommy I've just realized ports are not open on that plan, so the websockets don't work. I am very new to all this. Could you please help me ? The FAQ says : With the help of a root admin, you could get an Nginx proxy set up. To explore this option, please post a request in our Customer Service forum, making sure to provide your username, domain name, server name, and details about your websocket application, and we'll be happy to help. Quote
wolstech Posted yesterday at 12:30 PM Posted yesterday at 12:30 PM Krydos can help with this. Whether this will actually work though is going to depend on the application you're running. Most game servers end up needing a VPS. Quote
gofterdom Posted yesterday at 01:08 PM Author Posted yesterday at 01:08 PM I'm guessing Krydos is a person, not a protocol ? Sorry I'm new to all this. I wouldn't mind upgrading to VPS but this project is such small scale that i was not looking for any recurring expenses, I liked the one time fee solution ! Thank you for your time. 1 Quote
Krydos Posted 22 hours ago Posted 22 hours ago Websockets do work on Morty, Tommy, and Johnny, but like it says on the FAQ you have to be able to proxy it through Apache or Nginx. This isn't a big deal because even on a VPS you probably shouldn't expose the websocket directly to the internet. Both Nginx and Apache do a much better job of handling SSL for wss:// and help protect you from whatever random vulnerabilities your websocket software has. I would say that on Tommy your bigger concern is going to be going over the 200 GB memory limit. In order for a websocket to listen 24/7 it needs to be running 24/7 and that is going to use a lot of memory. If you switch to Morty you can have unlimited memory. If you switch to a VPS you get SSH command line access as well. If you want to continue to try to set this up on Tommy the next step would be to follow this guide, but instead of the Discord bot run your websocket software instead. If you get it working I can set up Nginx to reverse proxy to your websocket. Quote
gofterdom Posted 22 hours ago Author Posted 22 hours ago Hello, Thank you for your reply. As i said, I am very new to all this, i thought the 200gb size limit was the size of the files we could upload >< And i'm not sure what would be the use of a SSH command line ? You said there was a guide to follow but i couldn't find a link in your message, could you please send it again ? Thank you for your time. Quote
KazVee Posted 21 hours ago Posted 21 hours ago Here's a link to the Discord Bot guide that Krydos mentioned: https://wiki.helionet.org/Discord_Bot Quote
gofterdom Posted 20 hours ago Author Posted 20 hours ago I'm sorry, I'm lost. Am i supposed to adapt this tutorial for my website ? How would that work ? I'm lost The website + websockets work well locally and on render/replit etc, i've uploaded the files on Heliohost Quote
gofterdom Posted 17 hours ago Author Posted 17 hours ago On the discord bot ? I haven't started, because I didn't understand how I could apply this tutorial to my project. Am I dense ? :x On uploading my project to helio, all the files are here, i have started node.js but got an error message saying the 3000 port was occupied Quote
Krydos Posted 11 hours ago Posted 11 hours ago The point of the Discord bot tutorial is how to start your websocket, how to keep it running in the background, how to check the logs of the websocket, and most importantly how to stop your websocket if your memory usage or CPU usage is going to get you suspended? How were you planning on stopping the Node.js script if port 3000 wasn't already in use? Watching people set up Node.js projects is about as entertaining as watching someone try to drive for the first time: Node.js newbie: I can reach the steering wheel, the car is pointed downhill, we're starting to move!! Krydos: Can you reach the brake? Node.js newbie: What do we need brakes for? Quote
gofterdom Posted 7 hours ago Author Posted 7 hours ago I am a newbie in node.js, as well as js and html as a whole. I thought the server would automatically stop the script when reaching the max usage. As for the logs, keeping it running etc... when i was deploying to render/replit for quick testing, everything was handled for me, so i didn't know there was so much i needed to keep in mind. I will try to apply the tutorial. Quote
gofterdom Posted 4 hours ago Author Posted 4 hours ago I'm sorry, i can't use this tutorial for my project, I can't find a way to apply it, this seems to be written in Python and I don't know that language. I might have bitten more than i could chew with this websocket project on a server that doesn't allow port access directly. Thank you for your help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.