2.7.4 • Published 2 years ago

csgogsi-socket v2.7.4

Weekly downloads
92
License
MIT
Repository
github
Last release
2 years ago

Statements CI Dependencies Downloads Version

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.

2.7.4

2 years ago

2.7.2

2 years ago

2.7.1

2 years ago

2.7.0

2 years ago

2.6.0

2 years ago

2.5.6

3 years ago

2.5.7

3 years ago

2.4.3

4 years ago

2.5.5

3 years ago

2.5.0

4 years ago

2.5.2

3 years ago

2.5.1

4 years ago

2.5.4

3 years ago

2.5.3

3 years ago

2.4.2

4 years ago

2.4.0

4 years ago

2.3.7

4 years ago

2.3.6

4 years ago

2.3.5

4 years ago

2.3.4

4 years ago

2.3.3

4 years ago

2.3.0

4 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago