feat(frontend): migrate animations to GSAP and update client socket types for Next 16.3
This commit is contained in:
@@ -29,7 +29,12 @@ const orpc: ORPCClient = (() => {
|
||||
basePath: "trpc",
|
||||
});
|
||||
|
||||
const link = new RPCLink({ websocket: socket });
|
||||
const link = new RPCLink({
|
||||
websocket: socket as unknown as Pick<
|
||||
WebSocket,
|
||||
"addEventListener" | "readyState" | "removeEventListener" | "send"
|
||||
>,
|
||||
});
|
||||
return createORPCClient(link) as unknown as ORPCClient;
|
||||
})();
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ export class WsConnection {
|
||||
|
||||
sendBinary(data: ArrayBufferLike): void {
|
||||
if (this.ws?.readyState === WebSocket.OPEN) {
|
||||
this.ws.send(data);
|
||||
this.ws.send(data as ArrayBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user