Welshman Docs / @welshman/net / NetContext
Type Alias: NetContext ​
NetContext:
object
Defined in: packages/net/src/Context.ts:16
Type declaration ​
authMode ​
authMode:
AuthMode
getExecutor() ​
getExecutor: (
relays
) =>Executor
Parameters ​
relays ​
string
[]
Returns ​
isDeleted() ​
isDeleted: (
url
,event
) =>boolean
Parameters ​
url ​
string
event ​
Returns ​
boolean
isValid() ​
isValid: (
url
,event
) =>boolean
Parameters ​
url ​
string
event ​
Returns ​
boolean
matchFilters() ​
matchFilters: (
url
,filters
,event
) =>boolean
Parameters ​
url ​
string
filters ​
Filter
[]
event ​
Returns ​
boolean
onEvent() ​
onEvent: (
url
,event
) =>void
Parameters ​
url ​
string
event ​
Returns ​
void
optimizeSubscriptions() ​
optimizeSubscriptions: (
subs
) =>RelaysAndFilters
[]
Parameters ​
subs ​
Returns ​
pool ​
pool:
Pool
signEvent() ​
signEvent: (
event
) =>Promise
<SignedEvent
|undefined
>
Parameters ​
event ​
Returns ​
Promise
<SignedEvent
| undefined
>