a lot of progress on jotted editor
This commit is contained in:
@ -1,16 +1,13 @@
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BinaryDad.Coding.Hubs
|
||||
{
|
||||
public class CodeHub : Hub
|
||||
{
|
||||
public async Task SendMessage(string user, string message)
|
||||
public Task UpdateCode(string user, int index, string code)
|
||||
{
|
||||
await Clients.All.SendAsync("ReceiveMessage", user, message);
|
||||
return Clients.All.SendAsync("ReceiveCode", user, index, code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user