Add connect directory, update readme
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {Socket, isMessage, asMessage} from './util/Socket'
|
||||
import type {SocketMessage} from './util/Socket'
|
||||
import {Emitter} from './util/Emitter'
|
||||
import {Queue} from './util/Queue'
|
||||
import {AuthStatus, ConnectionMeta} from './ConnectionMeta'
|
||||
import {Socket, isMessage, asMessage} from './Socket'
|
||||
import type {SocketMessage} from './Socket'
|
||||
|
||||
class SendQueue extends Queue {
|
||||
constructor(readonly cxn: Connection) {
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {Event, Filter} from 'nostr-tools'
|
||||
import type {Connection} from './Connection'
|
||||
import type {Emitter} from './util/Emitter'
|
||||
import type {Message} from './util/Socket'
|
||||
import type {Message} from './connect/Socket'
|
||||
|
||||
export type Target = Emitter & {
|
||||
connections: Connection[]
|
||||
@@ -1,5 +1,5 @@
|
||||
import type {Target} from '../Executor'
|
||||
import type {Message} from '../util/Socket'
|
||||
import type {Message} from '../connect/Socket'
|
||||
import {Emitter} from '../util/Emitter'
|
||||
|
||||
export class Multi extends Emitter {
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Connection} from '../Connection'
|
||||
import {Emitter} from '../util/Emitter'
|
||||
import type {PlexMessage, Message} from '../util/Socket'
|
||||
import type {PlexMessage, Message} from '../connect/Socket'
|
||||
import {Connection} from '../connect/Connection'
|
||||
|
||||
export class Plex extends Emitter {
|
||||
constructor(readonly urls: string[], readonly connection: Connection) {
|
||||
@@ -1,6 +1,6 @@
|
||||
import type {Connection} from '../Connection'
|
||||
import type {Message} from '../util/Socket'
|
||||
import {Emitter} from '../util/Emitter'
|
||||
import type {Message} from '../connect/Socket'
|
||||
import type {Connection} from '../connect/Connection'
|
||||
|
||||
export class Relay extends Emitter {
|
||||
constructor(readonly connection: Connection) {
|
||||
@@ -1,6 +1,6 @@
|
||||
import type {Connection} from '../Connection'
|
||||
import type {Message} from '../util/Socket'
|
||||
import {Emitter} from '../util/Emitter'
|
||||
import type {Message} from '../connect/Socket'
|
||||
import type {Connection} from '../connect/Connection'
|
||||
|
||||
export class Relays extends Emitter {
|
||||
constructor(readonly connections: Connection[]) {
|
||||
+10
-10
@@ -1,15 +1,15 @@
|
||||
export * from "./Connection"
|
||||
export * from "./ConnectionMeta"
|
||||
export * from "./Executor"
|
||||
export * from "./Pool"
|
||||
export * from "./Subscription"
|
||||
export * from "./util/nostr"
|
||||
export * from "./util/LRUCache"
|
||||
export * from "./util/Deferred"
|
||||
export * from "./util/Emitter"
|
||||
export * from "./util/Queue"
|
||||
export * from "./util/Socket"
|
||||
export * from "./target/Plex"
|
||||
export * from "./target/Relay"
|
||||
export * from "./target/Relays"
|
||||
export * from "./target/Multi"
|
||||
export * from "./connect/Socket"
|
||||
export * from "./connect/Connection"
|
||||
export * from "./connect/ConnectionMeta"
|
||||
export * from "./connect/Executor"
|
||||
export * from "./connect/Pool"
|
||||
export * from "./connect/Subscription"
|
||||
export * from "./connect/target/Plex"
|
||||
export * from "./connect/target/Relay"
|
||||
export * from "./connect/target/Relays"
|
||||
export * from "./connect/target/Multi"
|
||||
|
||||
Reference in New Issue
Block a user