feat(frontend): migrate animations to GSAP and update client socket types for Next 16.3

This commit is contained in:
asepharyana
2026-08-25 22:47:25 +07:00
7 changed files with 621 additions and 8 deletions
+6 -1
View File
@@ -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;
})();
+1 -1
View File
@@ -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);
}
}