Jump to content
McKay Development

Recommended Posts

Posted

I'm currently having competition in a little niche, and its all about beeing faster.

 

For that reason I want to accept a tradeoffer asap after getting it.

 

Here is my question: 

 

Is there anything that I can do to make 

manager.on('newOffer', function (offer) {
    //Just a function that has some logic, does pretty much just accept the offer as long as itemstogive.length ==0
    accept(offer);
});

faster? Or is this the fastest already. And how much delay is there between getting the offer, and this block of code realizing that a new offer came in?

 

I can also post my full code if needed. 

Posted

You can change the Poll Interval in the Manager constructor. 

 

  • pollInterval - Optional. The time, in milliseconds, between polls. If -1, timed polling is disabled. Minimum 1000, default 30000 (30 seconds).

 

you can also add Polling data, but i think it only affects trade loads after you have received multiples offers

Posted

You can change the Poll Interval in the Manager constructor. 

 

  • pollInterval - Optional. The time, in milliseconds, between polls. If -1, timed polling is disabled. Minimum 1000, default 30000 (30 seconds).

 

you can also add Polling data, but i think it only affects trade loads after you have received multiples offers

do you have any experience with that? I bet that steam doesn't like if the interval is too low

Posted

The absolute fastest way to accept incoming trade offers is to pass a node-steam-user instance to steam-tradeoffer-manager. The Steam server will send real-time notifications of when offers are received, and newOffer will be emitted immediately after the offer's details are retrieved.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...