mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
sync
This commit is contained in:
@@ -35,7 +35,7 @@ export class SyncServer extends DurableObject {
|
||||
ws.close(code, "Durable Object is closing WebSocket")
|
||||
}
|
||||
|
||||
async publish(key: string, content: string) {
|
||||
async publish(key: string, content: any) {
|
||||
await this.ctx.storage.put(key, content)
|
||||
|
||||
const clients = this.ctx.getWebSockets()
|
||||
|
||||
@@ -33,7 +33,7 @@ export namespace Share {
|
||||
sessionID: sessionID,
|
||||
shareID: session.shareID,
|
||||
key: key,
|
||||
content: JSON.stringify(content),
|
||||
content,
|
||||
}),
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user