+
+ Important: This relay is designed for WebSocket connections only. HTTP requests are not supported for data operations.
+
+
+
Connection Details
+
Connect to the relay using WebSocket:
+
ws://localhost:6942
+
+
+
+
Nostr Commands
+
+ REQ
- Subscribe to events
+ EVENT
- Publish an event
+ CLOSE
- Close a subscription
+
+
+
+
+
CCN Commands
+
+ CCN CREATE
- Create a new CCN
+ CCN LIST
- List all active CCNs
+ CCN ACTIVATE
- Activate a specific CCN
+
+
+
+
+
Documentation
+
For detailed information about Arx-CCN functionality and best practices, please refer to the official documentation.
+
View Documentation
+
+
+
\ No newline at end of file
diff --git a/src/UserConnection.ts b/src/UserConnection.ts
new file mode 100644
index 0000000..e03c936
--- /dev/null
+++ b/src/UserConnection.ts
@@ -0,0 +1,61 @@
+import type { Database } from 'jsr:@db/sqlite';
+import type { NostrEvent, NostrFilter } from 'jsr:@nostrify/types';
+
+export class UserConnection {
+ public socket: WebSocket;
+ public subscriptions: Map