Skip to content

Commit

Permalink
Port bugfix from SDK (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
juberti authored Dec 29, 2023
1 parent 50a28d4 commit bd0a246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/voice/src/app/agent/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -659,11 +659,11 @@ export class WebRtcChatManager implements ChatManager {
switch (msg.type) {
case 'room_info':
this.room = new Room();
this.room.on(RoomEvent.TrackSubscribed, (track) => this.handleTrackSubscribed(track));
this.room.on(RoomEvent.DataReceived, (payload, participant) => this.handleDataReceived(payload, participant));
await this.room.connect(msg.roomUrl, msg.token);
console.log('[chat] connected to room', this.room.name);
this.maybePublishLocalAudio();
this.room.on(RoomEvent.TrackSubscribed, (track) => this.handleTrackSubscribed(track));
this.room.on(RoomEvent.DataReceived, (payload, participant) => this.handleDataReceived(payload, participant));
break;
default:
console.warn('unknown message type', msg.type);
Expand Down

4 comments on commit bd0a246

@vercel
Copy link

@vercel vercel bot commented on bd0a246 Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-voice – ./packages/voice

ai-jsx-voice-git-main-fixie-ai.vercel.app
voice.fixie.ai
ai-jsx-voice.vercel.app
ai-jsx-voice-fixie-ai.vercel.app

@vercel
Copy link

@vercel vercel bot commented on bd0a246 Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-docs – ./packages/docs

ai-jsx-docs-git-main-fixie-ai.vercel.app
ai-jsx-docs-fixie-ai.vercel.app
docs.ai-jsx.com
ai-jsx-docs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on bd0a246 Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-tutorial-nextjs – ./packages/tutorial-nextjs

ai-jsx-tutorial-nextjs.vercel.app
ai-jsx-tutorial-nextjs-fixie-ai.vercel.app
ai-jsx-tutorial-nextjs-git-main-fixie-ai.vercel.app

@vercel
Copy link

@vercel vercel bot commented on bd0a246 Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-nextjs-demo – ./packages/nextjs-demo

ai-jsx-nextjs-demo-git-main-fixie-ai.vercel.app
ai-jsx-nextjs-demo-fixie-ai.vercel.app
ai-jsx-nextjs-demo.vercel.app

Please sign in to comment.