Files
dealplustech/node_modules/crossws/dist/adapters/uws.d.ts
Kunthawat 5171a789e9 fix: Final restoration with port 80
 COMPLETED:
1. Dockerfile uses port 80 (astro preview)
2. BaseLayout imports globals.css
3. globals.css with Tailwind v4 @theme syntax
4. index.astro has Header, Footer, FixedContact
5. All image references fixed to existing files
6. Hero uses hdpe_pipe_main.jpg
7. Product cards use hdpe001.jpg
8. pt-20 on main for fixed header

 TESTED LOCALLY:
- Build: 15 pages in 1.27s
- Docker build successful
- Port 80 working
- Images load
- CSS works

Ready for Easypanel deployment.
2026-03-12 08:58:56 +07:00

60 lines
1.8 KiB
TypeScript

import { Adapter, AdapterInstance, Peer, AdapterOptions } from '../index.js';
import { W as WebSocket } from '../shared/crossws.BQXMA5bH.js';
import uws from 'uWebSockets.js';
type UserData = {
peer?: UWSPeer;
req: uws.HttpRequest;
res: uws.HttpResponse;
protocol: string;
extensions: string;
context: Peer["context"];
};
type WebSocketHandler = uws.WebSocketBehavior<UserData>;
interface UWSAdapter extends AdapterInstance {
websocket: WebSocketHandler;
}
interface UWSOptions extends AdapterOptions {
uws?: Exclude<uws.WebSocketBehavior<any>, "close" | "drain" | "message" | "open" | "ping" | "pong" | "subscription" | "upgrade">;
}
declare const uwsAdapter: Adapter<UWSAdapter, UWSOptions>;
declare class UWSPeer extends Peer<{
peers: Set<UWSPeer>;
request: UWSReqProxy;
uws: uws.WebSocket<UserData>;
ws: UwsWebSocketProxy;
uwsData: UserData;
}> {
get remoteAddress(): string | undefined;
get context(): Record<string, unknown>;
send(data: unknown, options?: {
compress?: boolean;
}): number;
subscribe(topic: string): void;
unsubscribe(topic: string): void;
publish(topic: string, message: string, options?: {
compress?: boolean;
}): number;
close(code?: number, reason?: uws.RecognizedString): void;
terminate(): void;
}
declare class UWSReqProxy {
private _headers?;
private _rawHeaders;
url: string;
constructor(_req: uws.HttpRequest);
get headers(): Headers;
}
declare class UwsWebSocketProxy implements Partial<WebSocket> {
private _uws;
readyState?: number;
constructor(_uws: uws.WebSocket<UserData>);
get bufferedAmount(): number;
get protocol(): string;
get extensions(): string;
}
export { uwsAdapter as default };
export type { UWSAdapter, UWSOptions };