Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion packages/core/guard/server/src/routing/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use rivet_guard_core::proxy_service::RoutingOutput;
use std::sync::Arc;

use super::{SEC_WEBSOCKET_PROTOCOL, X_RIVET_TOKEN};
pub(crate) const WS_PROTOCOL_TOKEN: &str = "rivet_target.";
pub(crate) const WS_PROTOCOL_TOKEN: &str = "rivet_token.";

/// Route requests to the API service
#[tracing::instrument(skip_all)]
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/actor_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function main() {

// Test WebSocket connection
console.log("Testing WebSocket connection to actor...");
await testWebSocket(actorResponse.actor.actor_id);
// await testWebSocket(actorResponse.actor.actor_id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be uncommented


console.log("Destroying actor...");
await destroyActor("default", actorResponse.actor.actor_id);
Expand Down
4 changes: 4 additions & 0 deletions scripts/tests/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const RIVET_ENDPOINT =
process.env.RIVET_ENDPOINT ?? "http://localhost:6420";
const RIVET_TOKEN = process.env.RIVET_TOKEN ?? "dev";

export async function createActor(
namespaceName: string,
Expand Down Expand Up @@ -39,6 +40,9 @@ export async function destroyActor(
`${RIVET_ENDPOINT}/actors/${actorId}?namespace=${namespaceName}`,
{
method: "DELETE",
headers: {
"Authorization": `Bearer ${RIVET_TOKEN}`,
},
},
);

Expand Down
2 changes: 2 additions & 0 deletions sdks/typescript/test-runner/src/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading