Handle AUTH with error (not actual handling yet)

This commit is contained in:
Mike Dilger 2024-02-15 11:46:37 +13:00
parent 1e03f9094f
commit d615c871e8

View File

@ -176,8 +176,12 @@ impl WebSocketService {
Ok(())
}
pub async fn auth(&mut self, _msg: String, __inpos: usize) -> Result<(), Error> {
unimplemented!()
pub async fn auth(&mut self, msg: String, _inpos: usize) -> Result<(), Error> {
let _input = msg.as_bytes();
let reply = NostrReply::Notice("AUTH is not yet supported".to_owned());
self.websocket.send(Message::text(reply.as_json())).await?;
Ok(())
}
}