Web/Javascript - Live API ephemeral tokens issue and latest version issue

I’m trying to work in a web environment with live api.
Simply running “npm install @google/genai” for latest version has a bug, the websocket that it will try to access with:
const ai = new GoogleGenAI({ apiKey: sessionData.ephemeral_token });
liveSession = await ai.live.connect({ model, config, callbacks });
Has a wrong path: wss://generativelanguage.googleapis.com//ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContentConstrained
Which instantly throws an error because it has //ws instead of /ws
Trying an older sdk version of @google/genai does not seem to support ephemeral tokens.

What to do now guys? Any help appreciated.

Fixed. For anyone with similar problem you must use v1alpha version - yes, but how do you use it?
Like this:
const ai = new GoogleGenAI({ apiKey: sessionData.ephemeral_token, apiVersion: ‘v1alpha’});