|
|
|
@ -168,9 +168,6 @@ namespace Yavsc
|
|
|
|
return _cxManager.IsPresent(roomName, userName);
|
|
|
|
return _cxManager.IsPresent(roomName, userName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ChatRoomInfo Join(string roomName)
|
|
|
|
public ChatRoomInfo Join(string roomName)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.LogInformation($"Join:{roomName}");
|
|
|
|
_logger.LogInformation($"Join:{roomName}");
|
|
|
|
@ -189,7 +186,7 @@ namespace Yavsc
|
|
|
|
_logger.LogInformation($"Joining");
|
|
|
|
_logger.LogInformation($"Joining");
|
|
|
|
chanInfo = _cxManager.Join(roomName, Context.ConnectionId);
|
|
|
|
chanInfo = _cxManager.Join(roomName, Context.ConnectionId);
|
|
|
|
Clients.Group(roomGroupName).notifyRoom(NotificationTypes.UserJoin, roomName, user);
|
|
|
|
Clients.Group(roomGroupName).notifyRoom(NotificationTypes.UserJoin, roomName, user);
|
|
|
|
} else{
|
|
|
|
} else {
|
|
|
|
_logger.LogInformation($"already present");
|
|
|
|
_logger.LogInformation($"already present");
|
|
|
|
// in case in an additional connection,
|
|
|
|
// in case in an additional connection,
|
|
|
|
// one only send info on room without
|
|
|
|
// one only send info on room without
|
|
|
|
@ -391,11 +388,9 @@ namespace Yavsc
|
|
|
|
cli.addPV(Context.User.Identity.Name, message);
|
|
|
|
cli.addPV(Context.User.Identity.Name, message);
|
|
|
|
_logger.LogInformation($"Sent pv to cx {connectionId}");
|
|
|
|
_logger.LogInformation($"Sent pv to cx {connectionId}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Authorize]
|
|
|
|
[Authorize]
|
|
|
|
|
|
|
|
|
|
|
|
public void SendStream(string connectionId, long streamId, string message)
|
|
|
|
public void SendStream(string connectionId, long streamId, string message)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!InputValidator.ValidateMessage(message)) return;
|
|
|
|
if (!InputValidator.ValidateMessage(message)) return;
|
|
|
|
|