We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I just ran into an issue with the new version where the following error occurs: TypeError: Client is not a constructor.
TypeError: Client is not a constructor
Looking at census.client.ts the export class is in fact CensusClient.
census.client.ts
CensusClient
I fixed this issue by doing the following:
import census from 'ps2census'; const { CensusClient, Events } = census; const subscriptions = [{ // Connery, Miller, Cobalt, Emerald, SolTech worlds: ['1', '10', '13', '17', '40'], characters: ['all'], eventNames: ['MetagameEvent'], logicalAndCharactersWithWorlds: true, }]; // Initalise ps2census event stream client const client = new CensusClient(serviceID, 'ps2', { streamManager: {subscriptions} });
The text was updated successfully, but these errors were encountered:
Fix: Export class. See: microwavekonijn/ps2census#45.
9c1c34f
I forgot to update the examples again. As there are now 2 clients I renamed the Stream client to avoid conflict.
This was the last big refactor just so you know, might add features but names and formats will stay the same from now on.
Sorry, something went wrong.
I can submit a PR to fix the README example if you're ok with that? 😃
No branches or pull requests
Hi,
I just ran into an issue with the new version where the following error occurs:
TypeError: Client is not a constructor
.Looking at
census.client.ts
the export class is in factCensusClient
.I fixed this issue by doing the following:
The text was updated successfully, but these errors were encountered: