mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-01 07:21:39 +00:00
Handle AUTH with error (not actual handling yet)
This commit is contained in:
parent
1e03f9094f
commit
d615c871e8
@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user