Skip to content

Commit

Permalink
Merge pull request #4 from ChasmNetwork/hotfix/add-log
Browse files Browse the repository at this point in the history
Add more log
  • Loading branch information
rekttdoteth authored Aug 2, 2024
2 parents cf76a16 + 5961137 commit d0848b5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/server/handshake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ export async function handshake() {
throw new Error("Please set the ORCHESTRATOR_URL environment variable");
}

logger.debug("Connecting to orchestrator at " + ORCHESTRATOR_URL);
const orchestrator = `${HANDSHAKE_PROTOCOL}://${ORCHESTRATOR_URL.split("//")[1]}?uid=${SCOUT_UID}`;

const ws = new WebSocket(
`${HANDSHAKE_PROTOCOL}://${ORCHESTRATOR_URL.split("//")[1]}?uid=${SCOUT_UID}`,
{
headers: {
Authorization: `Bearer ${WEBHOOK_API_KEY}`,
},
logger.debug("Connecting to orchestrator at " + orchestrator);
logger.debug("Your webhook URL: " + WEBHOOK_URL);

const ws = new WebSocket(orchestrator, {
headers: {
Authorization: `Bearer ${WEBHOOK_API_KEY}`,
},
);
});

ws.on("open", function open() {
logger.debug("Initiated WS handshake");
Expand Down

0 comments on commit d0848b5

Please sign in to comment.