mirror of
https://github.com/aljazceru/blastr.git
synced 2025-12-17 05:54:26 +01:00
Merge pull request #12 from MutinyWallet/eose
Send EOSE when we receive a subscription
This commit is contained in:
@@ -217,6 +217,15 @@ pub async fn main(req: Request, env: Env, _ctx: Context) -> Result<Response> {
|
||||
.send_with_str(&relay_msg.as_json())
|
||||
.expect("failed to send response");
|
||||
}
|
||||
ClientMessage::Req {
|
||||
subscription_id, ..
|
||||
} => {
|
||||
console_log!("ignoring nostr subscription request");
|
||||
let relay_msg = RelayMessage::new_eose(subscription_id);
|
||||
server
|
||||
.send_with_str(&relay_msg.as_json())
|
||||
.expect("failed to send response");
|
||||
}
|
||||
_ => {
|
||||
console_log!("ignoring other nostr client message types");
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ const RELAYS: [&str; 8] = [
|
||||
|
||||
pub fn get_nip11_response() -> RelayInformationDocument {
|
||||
let version = env!("CARGO_PKG_VERSION");
|
||||
let supported_nips = vec![1, 11, 20];
|
||||
let supported_nips = vec![1, 11, 15, 20];
|
||||
|
||||
RelayInformationDocument {
|
||||
name: Some("Mutiny blastr relay".to_string()),
|
||||
|
||||
Reference in New Issue
Block a user