Documentation
Preparing search index...
@kehto/shell
RelayPoolLike
Interface RelayPoolLike
Minimal relay pool interface that the shell requires.
interface
RelayPoolLike
{
publish
(
relayUrls
:
string
[]
,
event
:
any
)
:
void
;
request
(
relayUrls
:
string
[]
,
filters
:
any
,
)
:
{
subscribe
(
observer
:
{
complete
:
()
=>
void
;
error
:
()
=>
void
;
next
:
(
event
:
unknown
)
=>
void
;
}
,
)
:
{
unsubscribe
()
:
void
}
;
}
;
subscription
(
relayUrls
:
string
[]
,
filters
:
any
,
)
:
{
subscribe
(
observer
:
(
item
:
unknown
)
=>
void
)
:
{
unsubscribe
()
:
void
}
;
}
;
}
Index
Methods
publish
request
subscription
Methods
publish
publish
(
relayUrls
:
string
[]
,
event
:
any
)
:
void
Parameters
relayUrls
:
string
[]
event
:
any
Returns
void
request
request
(
relayUrls
:
string
[]
,
filters
:
any
,
)
:
{
subscribe
(
observer
:
{
complete
:
()
=>
void
;
error
:
()
=>
void
;
next
:
(
event
:
unknown
)
=>
void
;
}
,
)
:
{
unsubscribe
()
:
void
}
;
}
Parameters
relayUrls
:
string
[]
filters
:
any
Returns
{
subscribe
(
observer
:
{
complete
:
()
=>
void
;
error
:
()
=>
void
;
next
:
(
event
:
unknown
)
=>
void
;
}
,
)
:
{
unsubscribe
()
:
void
}
;
}
subscription
subscription
(
relayUrls
:
string
[]
,
filters
:
any
,
)
:
{
subscribe
(
observer
:
(
item
:
unknown
)
=>
void
)
:
{
unsubscribe
()
:
void
}
}
Parameters
relayUrls
:
string
[]
filters
:
any
Returns
{
subscribe
(
observer
:
(
item
:
unknown
)
=>
void
)
:
{
unsubscribe
()
:
void
}
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
publish
request
subscription
Documentation
Loading...
Minimal relay pool interface that the shell requires.