Skip to content
New issue

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

[Fix] Epic moved the Chat system from xmpp to eos connect and its own api #776

Merged
merged 8 commits into from
Aug 3, 2024
4 changes: 4 additions & 0 deletions docs/examples/simple.js
Original file line number Diff line number Diff line change
@@ -10,6 +10,10 @@ client.on('friend:message', (message) => {
}
});

client.on('party:member:message', (message) => {
console.log(`Party Message from ${message.author.displayName}: ${message.content}`);
});

client.on('ready', () => {
console.log(`Logged in as ${client.user.self.displayName}`);
});
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -24,13 +24,15 @@ export { default as InviterFriendshipsLimitExceededError } from './src/exception
export { default as MatchNotFoundError } from './src/exceptions/MatchNotFoundError';
export { default as OfferNotFoundError } from './src/exceptions/OfferNotFoundError';
export { default as PartyAlreadyJoinedError } from './src/exceptions/PartyAlreadyJoinedError';
export { default as PartyChatConversationNotFoundError } from './src/exceptions/PartyChatConversationNotFoundError';
export { default as PartyInvitationExpiredError } from './src/exceptions/PartyInvitationExpiredError';
export { default as PartyMaxSizeReachedError } from './src/exceptions/PartyMaxSizeReachedError';
export { default as PartyMemberNotFoundError } from './src/exceptions/PartyMemberNotFoundError';
export { default as PartyNotFoundError } from './src/exceptions/PartyNotFoundError';
export { default as PartyPermissionError } from './src/exceptions/PartyPermissionError';
export { default as SendMessageError } from './src/exceptions/SendMessageError';
export { default as StatsPrivacyError } from './src/exceptions/StatsPrivacyError';
export { default as StompConnectionError } from './src/exceptions/StompConnectionError';
export { default as UserNotFoundError } from './src/exceptions/UserNotFoundError';
export { default as XMPPConnectionError } from './src/exceptions/XMPPConnectionError';
export { default as XMPPConnectionTimeoutError } from './src/exceptions/XMPPConnectionTimeoutError';
93 changes: 86 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -51,9 +51,11 @@
"dependencies": {
"@discordjs/collection": "^2.0.0",
"@sapphire/async-queue": "^1.5.0",
"@stomp/stompjs": "^7.0.0",
"axios": "^1.3.5",
"stanza": "^12.18.0",
"tslib": "^2.5.0"
"tslib": "^2.5.0",
"ws": "^8.18.0"
},
"optionalDependencies": {
"fsevents": "^2.3.2"
7 changes: 7 additions & 0 deletions resources/Endpoints.ts
Original file line number Diff line number Diff line change
@@ -20,6 +20,13 @@ export default Object.freeze({
XMPP_SERVER: 'xmpp-service-prod.ol.epicgames.com',
EPIC_PROD_ENV: 'prod.ol.epicgames.com',

// EOS
EOS_STOMP: 'connect.epicgames.dev',
EOS_TOKEN: 'https://api.epicgames.dev/epic/oauth/v2/token',
EOS_TOKEN_INFO: 'https://api.epicgames.dev/epic/oauth/v2/tokenInfo',
EOS_TOKEN_REVOKE: 'https://api.epicgames.dev/epic/oauth/v2/revoke',
EOS_CHAT: 'https://api.epicgames.dev/epic/chat',

// BATTLE ROYALE
BR_STATS_V2: 'https://statsproxy-public-service-live.ol.epicgames.com/statsproxy/api/statsv2',
BR_SERVER_STATUS: 'https://lightswitch-public-service-prod06.ol.epicgames.com/lightswitch/api/service/bulk/status?serviceId=Fortnite',
2 changes: 2 additions & 0 deletions resources/enums.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
export enum AuthSessionType {
Fortnite = 'fortnite',
FortniteClientCredentials = 'fortniteClientCredentials',
EOS = 'eos',
Launcher = 'launcher',
}

export enum AuthSessionStoreKey {
Fortnite = 'fortnite',
FortniteClientCredentials = 'fortniteClientCredentials',
FortniteEOS = 'fortniteEOS',
Launcher = 'launcher',
}
Loading