Comments (3)
Callbacks would indeed be preferable, however I hadn't though much on how to implement then because I was under the impression there was no way to track which replies were associated with which query.
Looking into it further however it appears the Steam message headers allow the inclusion of job ids and node-steam's toGC function is already equipped to deal with these. It should be rather trivial to move node-dota2 over to using callbacks for methods where responses are expected; I'll play around with it and see where I get.
from node-dota2.
Awesome!
from node-dota2.
There we go. For simplicity all of the callbacks just return (error, response), but you can find the response data structure within the protobuf docs - though bear in mind the protobuf docs have parameters noted in underscore case, but the compiled descriptors are camelCase - e.g. where the doc says channel_name
you will have to use channelName
.
from node-dota2.
Related Issues (20)
- Watch/interact with replays HOT 3
- Not logging when SteamGuard is off
- multiple lobby
- bot to spectators HOT 1
- Grabbing spectated match stats
- Tips for creating new handler? Want to get daily draft trivia
- requestPracticeLobbyList returns only 5 results
- after leaving lobby issues
- Bot doesn't receive "practiceLobbyUpdate" event after lobby was launched HOT 3
- Bot is not installed HOT 2
- "practiceLobbyUpdate" no longer shows members HOT 4
- practiceLobbyUpdate data missing HOT 4
- .
- Regional channel list HOT 1
- Can I create an auto chess lobby now ? HOT 1
- Bot leaves lobby, leaves unassigned player (black box) HOT 1
- Bot not getting data after leaving game/game that is finished
- How to get lobby result ( members - team win - and others... ) ? HOT 1
- Cannot find module 'protobufjs' HOT 2
- Proposal: Archive node-dota2 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-dota2.