csgogsi-socket v2.7.4
CS:GO GSI Digest Socket
What is it and how does it work?
It's kind of overlay for github.com/osztenkurden/csgogsi package - if you want to connect this package to socket.io server, this will make your life easier, for example - during creation of the HUD. Additionaly, it returnes all types of CSGOGSI package.
Installing
npm install csgogsi-socket
Example
import { GSISocket } from 'csgogsi-socket';
const GSI = GSISocket('localhost:1337', 'update');
GSI.on('roundEnd', team => {
console.log(`Team ${team.name} win!`);
});
GSI.on('bombPlant', player => {
console.log(`${player.name} planted the bomb`);
});
GSISocket() function takes two arguments - first, address of socket.io server, and second - name of the event that gives the raw CSGO GSI data.
It returns socket and CSOGSI object (and all interfaces from CSGOGSI), so all methods from github.com/osztenkurden/csgogsi documentation will apply.
7 months ago
7 months ago
8 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago