Skip to content

Commit

Permalink
bring back relayConnect() as deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 21, 2023
1 parent 7f11c0c commit daaa2ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions relay.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { verifyEvent } from './pure.ts'
import { AbstractRelay } from './abstract-relay.ts'

/**
* @deprecated use Relay.connect() instead.
*/
export function relayConnect(url: string): Promise<Relay> {
return Relay.connect(url)
}

export class Relay extends AbstractRelay {
constructor(url: string) {
super(url, { verifyEvent })
Expand Down

0 comments on commit daaa2ef

Please sign in to comment.