We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cdc762 commit 38b491dCopy full SHA for 38b491d
template/server/main.py
@@ -36,9 +36,12 @@ async def lifespan(app: FastAPI):
36
client = httpx.AsyncClient()
37
38
try:
39
- default_context = await create_context(client, websockets, "python", "/home/user")
40
- default_websockets["python"] = default_context.id
41
- websockets["default"] = websockets[default_context.id]
+ python_context = await create_context(client, websockets, "python", "/home/user")
+ default_websockets["python"] = python_context.id
+ websockets["default"] = websockets[python_context.id]
42
+
43
+ javascript_context = await create_context(client, websockets, "javascript", "/home/user")
44
+ default_websockets["javascript"] = javascript_context.id
45
46
logger.info("Connected to default runtime")
47
yield
0 commit comments