mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Converted send message method to async (also created a synchronous method that shadows the async method). Added a method to send multiple messages at once and message truncation with a choice of strategies
This commit is contained in:
@@ -202,6 +202,12 @@ public class ChatClient
|
||||
_wsClient.Send(message);
|
||||
}
|
||||
|
||||
public async Task SendMessageInstantAsync(string message)
|
||||
{
|
||||
_logger.Debug($"Sending '{message}', bypassing the queue");
|
||||
await _wsClient.SendInstant(message);
|
||||
}
|
||||
|
||||
public void DeleteMessage(int messageId)
|
||||
{
|
||||
_logger.Debug($"Deleting {messageId}");
|
||||
|
||||
Reference in New Issue
Block a user