javilobo8 / pubg-api-redis

Playerunknown's Battlegrounds API Wrapper with Redis caching
MIT License
65 stars 9 forks source link

net.isIP is not a function at new RedisClient #10

Closed RemiFrontiere closed 6 years ago

RemiFrontiere commented 6 years ago

Hi,I tried first to get data from the api with HTTP Request I work on TypeScript Ionic/Angular****

image

But I got this error.

image

So now I try to use pubg-api-redis but I have this error when I follow your README

import { PubgAPI, PubgAPIErrors, REGION, SEASON, MATCH } from 'pubg-api-redis';

 let api = new PubgAPI({
   apikey: 'a16c7c6c-bdbexxxxxxxx-8206f380rd',
   redisConfig: {
     host: '127.0.0.1',
     port: 6379,
     expiration: 300, // Optional - defaults to 300.
  },
 });

javilobo8 commented 6 years ago

Hi! This is not for frontend development, is for backend! You need to run with NodeJS

RemiFrontiere commented 6 years ago

Oups ! Ok thanks ;)