mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-19 00:54:21 +01:00
implement basic send message
This commit is contained in:
@@ -73,6 +73,11 @@ class Connection {
|
||||
await GlobalState.connection.sendCommandRemoveContact(publicKey);
|
||||
}
|
||||
|
||||
static async sendMessage(publicKey, message) {
|
||||
await GlobalState.connection.sendTextMessage(publicKey, message);
|
||||
// todo handle acks
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default Connection;
|
||||
|
||||
Reference in New Issue
Block a user