Skip to content

Commit f551ced

Browse files
initialize session also on createSession
1 parent 5028bb0 commit f551ced

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Sandbox.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,6 @@ export class Sandbox {
222222
return this.createSession(customSession);
223223
}
224224

225-
/**
226-
* Connects to the Sandbox using a WebSocket connection, allowing you to interact with it. You can pass a custom session to connect to a specific user workspace, controlling permissions, git credentials and environment variables.
227-
*/
228225
async createSession(
229226
customSession?: SessionCreateOptions
230227
): Promise<SandboxSession> {
@@ -233,11 +230,10 @@ export class Sandbox {
233230
customSession
234231
);
235232

236-
/*
237233
if (customSession) {
238234
const client = await this.initializeCustomSession(customSession, session);
239235
client?.disconnect();
240-
}*/
236+
}
241237

242238
return session;
243239
}

0 commit comments

Comments
 (0)