Skip to content

Commit

Permalink
cleanup secsync config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed May 29, 2024
1 parent d7a778a commit 507b3cb
Show file tree
Hide file tree
Showing 14 changed files with 107 additions and 107 deletions.
2 changes: 1 addition & 1 deletion apps/app/components/page/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function Page({
yDoc: yDocRef.current,
documentId: docId,
signatureKeyPair,
websocketHost: websocketOrigin,
websocketEndpoint: websocketOrigin,
websocketSessionKey: deriveSessionAuthorization({ sessionKey })
.authorization,
onDocumentUpdated: ({ type, knownSnapshotInfo }) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/app/components/sharePage/SharePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const SharePage: React.FC<Props> = ({
yDoc: yDocRef.current,
documentId: docId,
signatureKeyPair,
websocketHost: websocketOrigin,
websocketEndpoint: websocketOrigin,
websocketSessionKey,
getNewSnapshotData: async () => {
// share page user can't create new snapshots
Expand Down
8 changes: 4 additions & 4 deletions packages/secsync/src/createSyncMachine.connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test("should start with connecting", (done) => {
input: {
...defaultTestMachineInput,
documentId: docId,
websocketHost: url,
websocketEndpoint: url,
websocketSessionKey: "sessionKey",
sodium,
},
Expand All @@ -50,7 +50,7 @@ test("should connect", (done) => {
input: {
...defaultTestMachineInput,
documentId: docId,
websocketHost: url,
websocketEndpoint: url,
websocketSessionKey: "sessionKey",
sodium,
},
Expand All @@ -74,7 +74,7 @@ test("should connect and use knownSnapshotId as query param", (done) => {
input: {
...defaultTestMachineInput,
documentId: docId,
websocketHost: url,
websocketEndpoint: url,
websocketSessionKey: "mySessionKey",
sodium,
loadDocumentParams: {
Expand Down Expand Up @@ -113,7 +113,7 @@ test("should connect and use knownSnapshotId & knownSnapshotUpdateClocks as quer
input: {
...defaultTestMachineInput,
documentId: docId,
websocketHost: url,
websocketEndpoint: url,
websocketSessionKey: "mySessionKey",
sodium,
loadDocumentParams: {
Expand Down
Loading

0 comments on commit 507b3cb

Please sign in to comment.