@hocuspocus/extension-redis
Advanced tools
Comparing version 1.0.0-alpha.37 to 1.0.0-alpha.38
/// <reference types="node" /> | ||
import { IncomingMessage, ServerResponse } from 'http'; | ||
import WebSocket from 'ws'; | ||
import WebSocket, { WebSocketServer } from 'ws'; | ||
import { Socket } from 'net'; | ||
@@ -15,3 +15,3 @@ import { Storage } from './Storage'; | ||
configuration: Configuration; | ||
websocketServer: WebSocket.Server; | ||
websocketServer: WebSocketServer; | ||
connections: Map<WebSocket, any>; | ||
@@ -18,0 +18,0 @@ /** |
import * as Y from 'yjs'; | ||
import { Awareness } from 'y-protocols/awareness'; | ||
import * as mutex from 'lib0/mutex'; | ||
import { CloseEvent, MessageEvent, OpenEvent } from 'ws'; | ||
import { Event, CloseEvent, MessageEvent } from 'ws'; | ||
import EventEmitter from './EventEmitter'; | ||
@@ -96,3 +96,3 @@ import { OutgoingMessage } from './OutgoingMessage'; | ||
}) => void; | ||
onOpen: (event: OpenEvent) => void; | ||
onOpen: (event: Event) => void; | ||
onConnect: () => void; | ||
@@ -145,3 +145,3 @@ onMessage: (event: MessageEvent) => void; | ||
disconnect(): void; | ||
onOpen(event: OpenEvent): void; | ||
onOpen(event: Event): void; | ||
getToken(): Promise<string | null>; | ||
@@ -148,0 +148,0 @@ webSocketConnectionEstablished(): Promise<void>; |
/// <reference types="node" /> | ||
import WebSocket from 'ws'; | ||
import WebSocket, { WebSocketServer } from 'ws'; | ||
import { IncomingMessage, Server as HTTPServer } from 'http'; | ||
@@ -17,3 +17,3 @@ import { Configuration } from './types'; | ||
httpServer?: HTTPServer; | ||
webSocketServer?: WebSocket.Server; | ||
webSocketServer?: WebSocketServer; | ||
debugger: MessageLogger; | ||
@@ -20,0 +20,0 @@ /** |
@@ -45,3 +45,3 @@ /// <reference types="node" /> | ||
*/ | ||
sendRequest(event: Events, payload: any): Promise<AxiosResponse<any>>; | ||
sendRequest(event: Events, payload: any): Promise<AxiosResponse<unknown, any>>; | ||
/** | ||
@@ -48,0 +48,0 @@ * onChange hook |
{ | ||
"name": "@hocuspocus/extension-redis", | ||
"version": "1.0.0-alpha.37", | ||
"version": "1.0.0-alpha.38", | ||
"description": "hocuspocus persistence driver for Redis", | ||
@@ -25,7 +25,7 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^1.0.0-alpha.74", | ||
"@hocuspocus/server": "^1.0.0-alpha.75", | ||
"y-redis": "^1.0.2", | ||
"yjs": "^13.5.0" | ||
}, | ||
"gitHead": "d5699cebc1fa14412a4e2cec00a842f01e90a69b" | ||
"gitHead": "49a520f1b6be37139f5c7243a484dc413640869c" | ||
} |
48868