@playcademy/sandbox 0.1.0-beta.12 → 0.1.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +7656 -6201
- package/dist/lib/realtime.d.ts +16 -0
- package/dist/server.d.ts +5 -1
- package/dist/server.js +7632 -6183
- package/dist/types.d.ts +4 -0
- package/package.json +2 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createRealtimeServer } from '@playcademy/realtime/server';
|
|
2
|
+
import type { ServerOptions } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Starts the realtime server with sandbox-specific configuration.
|
|
5
|
+
*
|
|
6
|
+
* This function handles:
|
|
7
|
+
* - Conditional startup based on options
|
|
8
|
+
* - Sandbox-specific authentication secrets
|
|
9
|
+
* - Quiet mode for clean embedded logging
|
|
10
|
+
* - Error handling with graceful degradation
|
|
11
|
+
*
|
|
12
|
+
* @param realtimeOptions - Realtime configuration from ServerOptions
|
|
13
|
+
* @param betterAuthSecret - Authentication secret for realtime server
|
|
14
|
+
* @returns Promise resolving to realtime server instance or null
|
|
15
|
+
*/
|
|
16
|
+
export declare function startRealtimeServer(realtimeOptions: NonNullable<ServerOptions['realtime']>, betterAuthSecret: string): Promise<Awaited<ReturnType<typeof createRealtimeServer>> | null>;
|
package/dist/server.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import type { ServerOptions } from './types';
|
|
2
|
-
export declare function startServer(options: ServerOptions): Promise<
|
|
2
|
+
export declare function startServer(options: ServerOptions): Promise<{
|
|
3
|
+
main: import("@hono/node-server").ServerType;
|
|
4
|
+
realtime: Bun.Server | null;
|
|
5
|
+
stop: () => void;
|
|
6
|
+
}>;
|
|
3
7
|
export declare const version: string;
|