Uhhh what are you having problems with?
I’ve updated the post. I hope it helps.
Alright I’ve stuck the example code into a Heroku dyno but it seems to have trouble connecting. It gives me this error when I run the game:
The Heroku dyno has no errors whatsoever.
Here is a GitHub repository with all the code in it:
It’s just a Heroku dyno with the provided example code and a bit of minor changes made to it.
I’m not too sure how the Heroku platform works, it’s very possible the Heroku instance is not constantly online, which is required by this app to keep a connection open. As well as you should have to define the port on line 4 in index.js that Heroku uses.
Alright, sounds good. I’ll try that.
It is now telling me that it cannot parse the JSON:
It’s further than I was before though, so thank you!
Make sure you didn’t include a / after the website… like https://google.com/ should be https://google.com
In your module
Actually you did that, looking at your site it shows this Might want to pull you logs and see if there was an error. Also, don’t set port 80 in your module. Just set it to https://long-polling-rb.herokuapp.com/
How do I stop the Roblox side (Client) from continuing to run past the shutdown deadline?
I’ve discovered this bug and meant to push my fix to GitHub but I haven’t quite got around to it. Do me a favor and DM me here on the dev forum and remind me to do it.
Just did! Thanks for this library, as it truly is an excellent use for connecting between my Node.js backend API for my service and Roblox!
Update! We had a bug rolled out where we were not decoding messages on the node-server end of things. This has since been fixed, if you are having issues where it’s not working just upgrade your back-end/node version and the issue should subside. Sorry for any inconvience.
yo i just found out about this and this seems pretty nice!!
i must ask tho, what is the license?
am i able to use it in commercial projects?
(also once again this was exactly what i was looking for lol)
I haven’t attached a license, as it’s open source. It’s free to use, commercially, publically, or in any way you want. We guarantee no warranties or any guarantees at that. You’re free to use it as you wish (as long as you are not claiming it as your own).
epic, thanks man
thisll help a lot with my ideas regarding remote stuff
Hey there! Awesome idea, I’ve thought of doing this for a bit of time, but you just saved my life, lol, mind if I take it and optimize it a little more?
He is using the MIT License, which means that he’s OK with people sharing modified source code, with some limitations. See this for an overview of the MIT License.
I know. I just want to be nice and ask first
Yes, you are okay to make modifications to the code. Thanks for asking!
Is there a python version of this? I’m currently struggling to make a system where the applications get sent through roblox to discord bot for review.