Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions template/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ async def lifespan(app: FastAPI):
client = httpx.AsyncClient()

try:
default_context = await create_context(client, websockets, "python", "/home/user")
default_websockets["python"] = default_context.id
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]

javascript_context = await create_context(client, websockets, "javascript", "/home/user")
default_websockets["javascript"] = javascript_context.id

logger.info("Connected to default runtime")
yield
Expand Down
Loading