Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Sep 11, 2024
1 parent 2154aec commit 72002bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/partyserver/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ Did you try connecting directly to this Durable Object? Try using getServerByNam
const url = new URL(request.url);

// TODO: this is a hack to set the server name,
// so we can
// it'll be replaced with RPC later
if (url.pathname === "/cdn-cgi/partyserver/set-name/") {
// we can
return Response.json({ success: true });
// we can just return a 200 for now
return Response.json({ ok: true });
}

if (request.headers.get("Upgrade")?.toLowerCase() !== "websocket") {
Expand Down

0 comments on commit 72002bc

Please sign in to comment.