amai 0.0.1
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/README.md +114 -0
- package/dist/cli.cjs +1946 -0
- package/dist/cli.d.cts +2 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1934 -0
- package/dist/lib/daemon-entry.cjs +1588 -0
- package/dist/lib/daemon-entry.d.cts +2 -0
- package/dist/lib/daemon-entry.d.ts +2 -0
- package/dist/lib/daemon-entry.js +1578 -0
- package/dist/server.cjs +1437 -0
- package/dist/server.d.cts +7 -0
- package/dist/server.d.ts +7 -0
- package/dist/server.js +1425 -0
- package/package.json +62 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import WebSocket from 'ws';
|
|
2
|
+
|
|
3
|
+
declare function getConnectionStatus(ws: WebSocket): 'connecting' | 'open' | 'closing' | 'closed';
|
|
4
|
+
declare function connectToServer(serverUrl?: string): WebSocket;
|
|
5
|
+
declare function main(): Promise<void>;
|
|
6
|
+
|
|
7
|
+
export { connectToServer, getConnectionStatus, main };
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import WebSocket from 'ws';
|
|
2
|
+
|
|
3
|
+
declare function getConnectionStatus(ws: WebSocket): 'connecting' | 'open' | 'closing' | 'closed';
|
|
4
|
+
declare function connectToServer(serverUrl?: string): WebSocket;
|
|
5
|
+
declare function main(): Promise<void>;
|
|
6
|
+
|
|
7
|
+
export { connectToServer, getConnectionStatus, main };
|