Planetside 2 Stream API Wrapper
An API wrapper to access events of the game Planetside2
Getting Started
First of all you have to create the Api object:
var PlanetsideWrapper = ;var constants = ; var api = constantsSERVERSPC; // Or if you have a service id: var api = constantsSERVERSPC "example";
Now you need to subscribe to some events:
api;
And then you can access all events as part of nodes events
module:
api;
If you want to unsubscribe again:
api;// Or unsubscribe from everythingapi
Installing
Im just going to assume you use npm to install this library
npm install planetside-stream-api
Running the tests
git clone https://github.com/Planetside-Community-Devs/planetside-stream-api.gitcd planetside-stream-apinpm installnpm test
For additional information of the library on runtime use
the debug scope planetside-stream-api
And coding style tests
We are using ESLint to check the library code for style issues. To test run:
npm installnpm run lint
Built With
- WS - Used to connect to the websocket api - MIT Licensed
- debug - Used to debug the library - MIT Licensed
Authors
- Soundofdarkness (Laura Schäfer) - Currently Everything - Soundofdarkness
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- Daybreak for creating the game and api