mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
test to make server
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace Govor.API.Hubs.Infrastructure;
|
||||
|
||||
public static class ChatHubConstants
|
||||
{
|
||||
public const string ReceiveMessage = "ReceiveMessage";
|
||||
public const string MessageSent = "MessageSent";
|
||||
public const string MessageRemoved = "MessageRemoved";
|
||||
public const string MessageEdited = "MessageEdit";
|
||||
|
||||
public static string GetUserGroup(Guid userId) => userId.ToString();
|
||||
public static string GetChatGroup(Guid groupId) => $"group_{groupId}";
|
||||
public static string GetPrivateChat(Guid groupId) => $"private_{groupId}";
|
||||
}
|
||||
Reference in New Issue
Block a user