Skip to content

Commit

Permalink
Use Orig Token
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Jun 11, 2024
1 parent d69d9ca commit 6910218
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/lib/connection-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ export default class ConnectionPool extends Map<number | string, ConnectionClien
}).on('secureConnect', async () => {
for (const sub of await connConfig.subscriptions()) {
try {
await api.Mission.subscribe(sub.name, { uid: String(connConfig.id) });
await api.Mission.subscribe(sub.name, {
uid: String(connConfig.id)
},{
token: sub.token
});
console.log(`Connection: ${connConfig.id} - Sync: ${sub.name}: Subscribed!`);
} catch (err) {
console.warn(`Connection: ${connConfig.id} - Sync: ${sub.name}: ${err.message}`);
Expand Down

0 comments on commit 6910218

Please sign in to comment.