-
Posts
3545 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
How can i end process after changing avatar?
Dr. McKay replied to xoloth's topic in node-steamcommunity
You can use process.exit(0) to terminate the application. -
The GetTradeStatus API method will give you the new IDs after the items got traded.
-
Check the SteamID type. It will tell you if it's a chat or a user. Use chatMessage() to send a message.
-
Question Using .createOffer() with variables
Dr. McKay replied to McMuffinDK's topic in node-steam-tradeoffer-manager
Change line 3 to const offer = manager.createOffer(qqdata); -
Question Automatically selling steam items, error 400
Dr. McKay replied to frej4189's topic in node-steamcommunity
When you're doing things on the market, you need to set the Referer header to an expected value. Also, don't manually set any of those other headers either. -
JavaScript heap out of memory
Dr. McKay replied to 1Life1Chance's topic in node-steam-tradeoffer-manager
Is everything up to date? All your modules, Node.js, etc? -
newEmail, not email.
-
If you aren't doing anything that involves the server generating an event and pushing it down to the user, there's no need to use websockets. If all you're doing is request/response stuff then ajax is all you need and is much simpler.
- 4 replies
-
- Socket.io
- JavaScript
-
(and 2 more)
Tagged with:
-
socket.io is okay but I don't personally recommend it because I personally think it's a bit too much for what it needs to do. Plain old boring websockets are plenty since there's no real need to support browsers that don't support websockets anymore (they've been standard for years now). I made a websocket library but you can use anything. If you want to protect your server from having its direct IP exposed, you could use Cloudflare. They support websockets even on the free plan.
- 4 replies
-
- Socket.io
- JavaScript
-
(and 2 more)
Tagged with:
-
Question Cann't send trade PUBG item
Dr. McKay replied to Jelezuha's topic in node-steam-tradeoffer-manager
The item ID is wrong.- 2 replies
-
- node.js
- node-steam-tradeoffer-manager
- (and 3 more)
-
You can use the url module to parse the URL, then you'd want to check the domain, path, etc.
-
Question Timeout overflow warning
Dr. McKay replied to TextDynasty's topic in node-steam-tradeoffer-manager
Make sure all your modules are up to date. Run 'npm update'. And I mean to make sure your timer doesn't exceed 231. -
SteamIDs are too large to be represented as JavaScript numbers. You need to make that SteamID a string (wrap it in quotes).
-
Get node-steam client Object for node-csgo from node-steam-user
Dr. McKay replied to exellian's topic in node-steam-user
There is no other way to do it. Steam imposes limits on how frequently you can send inspect requests. -
Question Timeout overflow warning
Dr. McKay replied to TextDynasty's topic in node-steam-tradeoffer-manager
Make sure everything is up to date and make sure your code doesn't create any timeouts with a timer of 2^31. -
Question Steam slows ip bot, how to avoid?
Dr. McKay replied to meloff's topic in node-steam-tradeoffer-manager
Steam doesn't slow any requests, it will only outright block you with 429. Your proxy just sucks. -
itemsToRecieve.lenght is undefined
Dr. McKay replied to xoloth's topic in node-steam-tradeoffer-manager
It's spelled "length". And also itemsToReceive. -
You're making too many requests. You need to limit your requests.
-
You would want to pass in a node-steamcommunity instance you've created and set the localAddress on.
-
[Proposition] Change Trade token function
Dr. McKay replied to expl0it's topic in node-steamcommunity
If you could open an issue on GitHub that'll make me remember to add it. -
For the moment you're going to need to scrape.
-
That's my bad. Update to 3.33.2 please. For future reference, if a module is throwing an error and crashing the application, that warrants opening a GitHub issue.