Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
637 B
TypeScript
19 lines
637 B
TypeScript
import { Observable } from 'rxjs';
|
|
/**
|
|
* @publicApi
|
|
*/
|
|
export interface WsMessageHandler<T = string> {
|
|
message: T;
|
|
callback: (...args: any[]) => Observable<any> | Promise<any>;
|
|
}
|
|
/**
|
|
* @publicApi
|
|
*/
|
|
export interface WebSocketAdapter<TServer = any, TClient = any, TOptions = any> {
|
|
create(port: number, options?: TOptions): TServer;
|
|
bindClientConnect(server: TServer, callback: Function): any;
|
|
bindClientDisconnect?(client: TClient, callback: Function): any;
|
|
bindMessageHandlers(client: TClient, handlers: WsMessageHandler[], transform: (data: any) => Observable<any>): any;
|
|
close(server: TServer): any;
|
|
}
|